* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #004d40 0%, #1b5e20 50%, #00695c 100%);
    font-family: 'Roboto', sans-serif;
    color: #333;
    padding: 20px;
    position: relative;
    overflow-y: auto;
}

/* Background animated shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(38, 166, 154, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(26, 35, 126, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.99);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideInDown 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.login-header {
    margin-bottom: 32px;
    animation: slideInDown 0.8s ease-out 0.1s both;
}

.logo-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.2);
    border: 3px solid #c8e6c9;
}

.title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #004d40;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.login-form {
    margin-bottom: 28px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}

.label-icon {
    margin-right: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:focus {
    background: #fff;
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #26a69a, #004d40);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.form-group input:focus ~ .input-underline {
    width: 100%;
}

.button-login {
    width: 100%;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.button-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-login:hover::before {
    width: 300px;
    height: 300px;
}

.button-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(38, 166, 154, 0.4);
}

.button-login:active {
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.button-back {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-back::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-back:hover::before {
    width: 300px;
    height: 300px;
}

.button-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.footer-text {
    font-size: 0.85rem;
    color: #999;
    margin-top: 16px;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 32px 24px;
        max-width: 95vw;
    }

    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .logo-badge {
        width: 70px;
        height: 70px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .button-login {
        padding: 12px 24px;
        font-size: 1rem;
    }
}
