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

:root {
    --background: #F2EFE8;
    --logo-orange: #F2490C;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --border-gray: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --black-carbon: #141109;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--black-carbon);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Conteiner */

.login-container {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    align-items: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.logo p {
    color: #6b7280;
    font-size: 14px;
}

.logo-small {
    align-items: center;
    text-align: center;
}

.logo-small .logo-icon {
    width: 76px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-title {
    height: 40px;
    width: auto;
    display: block;
    margin: 4px auto 0;
}

/* Form */

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-gray);
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--logo-orange);
}

.form-group input::placeholder {
    color: #AAAAAA;
}


/* Button */

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--logo-orange);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(64, 59, 59, 0.3);
    margin-top: 20px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: shake 0.3s;
}

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

.error-message.show {
    display: block;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.info-box {
    background: #dbeafe;
    color: #1e40af;
    padding: 16px;
    border-radius: 12px;
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.6;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #6b7280;
    font-size: 13px;
}

/* ==================== RESPONSIVO ==================== */

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-container {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .logo {
        margin-bottom: 28px;
    }

    .logo-small .logo-icon {
        width: 60px;
    }

    .logo-title {
        height: 32px;
    }
}
