/* CSS Modernizado */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #809e9e;      /* Cor base principal */
    --secondary-color: #6b8a8a;    /* Tom mais escuro */
    --accent-color: #7a8a9e;       /* Tom azulado */
    --complementary-color: #9e8a6b; /* Tom complementar */
    --error-color: #9e6b6b;        /* Tom avermelhado */
    --success-color: #6b9e8a;      /* Tom esverdeado */
    --warning-color: #9e9e6b;      /* Tom amarelado */
    --text-color: #2b2d42;
    --light-color: #f8f9fa;
    --background-gradient: linear-gradient(135deg, #809e9e 0%, #6b8a8a 100%);
    --card-gradient: linear-gradient(135deg, #7a8a9e 0%, #809e9e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--background-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.login-card:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: rgba(233, 236, 239, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-input::placeholder {
    color: #adb5bd;
}

.form-actions {
    margin-top: 20px;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-button:hover {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.button-icon {
    transition: transform 0.3s ease;
}

.login-button:hover .button-icon {
    transform: translateX(3px);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.error-message {
    display: none;
    color: var(--error-color);
    background-color: rgba(247, 37, 133, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Animations */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 15s infinite linear;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite linear reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Shake animation */
.card.shake {
    animation: shake 0.5s ease normal;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(10px);
    }
    75% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        max-width: 90vw;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .form-input {
        padding: 12px 12px 12px 40px;
    }
    
    .login-button {
        padding: 12px;
    }
}