* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.global-header {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.logo-container {
    display: inline-block;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
}

.hero-section {
    flex: 1;
    position: relative;
    background-image: url('https://i0.wp.com/almapreta.com.br/images/2025/08/Guia-antirracista-ensina-a-promover-inclusao-no-mercado-de-trabalho.jpg?fit=1040%2C780&ssl=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem;
    position: relative;
}

.login-card {
    max-width: 440px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem 1.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.login-header {
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 450;
    border-left: 2px solid #d4d4d4;
    padding-left: 0.8rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.floating-input {
    position: relative;
    width: 100%;
}

.floating-input input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    padding: 1rem 2.6rem 0.5rem 2.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', monospace;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #111;
}

.floating-input input[type="password"],
.floating-input input[type="text"] {
    padding-right: 2.8rem;
}

.floating-input input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.floating-input label {
    position: absolute;
    left: 2.6rem;
    top: 0.85rem;
    font-size: 0.9rem;
    font-weight: 470;
    color: #8c8f96;
    background: #ffffff;
    padding: 0 4px;
    pointer-events: none;
    transition: 0.2s ease;
    border-radius: 20px;
}

.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label {
    top: -0.65rem;
    left: 2rem;
    font-size: 0.68rem;
    font-weight: 550;
    color: #000000;
    background: #ffffff;
    padding: 0 8px;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #9ca3af;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.input-icon-right:hover {
    color: #000000;
}

.floating-input input:focus ~ .input-icon-left {
    color: #000000;
}

.error-message {
    font-size: 0.7rem;
    font-weight: 500;
    color: #e03a3a;
    margin-top: 0.4rem;
    margin-left: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    animation: fadeUp 0.2s forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(4px); }
}

.btn-login {
    background: #000000;
    border: none;
    border-radius: 2rem;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #1c1c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.secondary-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-buttons .btn-secondary {
    flex: 1;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider::before {
    margin-right: 0.8rem;
}

.divider::after {
    margin-left: 0.8rem;
}

.global-feedback {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    text-align: center;
    background: #fafafc;
    border-radius: 3rem;
    padding: 0.6rem;
    color: #1f2a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #f0f0f0;
    animation: fadeScale 0.25s ease;
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.btn-login.loading {
    pointer-events: none;
    background: #2c2c2c;
}

.btn-login.loading i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-input input::placeholder {
    color: transparent;
}

@media (max-width: 900px) {
    .hero-section {
        background-position: 30% center;
    }
    .login-card {
        padding: 1.8rem;
    }
    .global-header {
        padding: 1rem 1.5rem;
    }
    .logo-img {
        height: 42px;
    }
}

@media (max-width: 768px) {
    .global-header {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        right: auto;
        display: flex;
        justify-content: flex-end;
    }
    .login-container {
        flex-direction: column;
    }
    .hero-section {
        display: none;
    }
    .form-section {
        flex: none;
        min-height: calc(100vh - 80px);
        background-image: url('https://i0.wp.com/almapreta.com.br/images/2025/08/Guia-antirracista-ensina-a-promover-inclusao-no-mercado-de-trabalho.jpg?fit=1040%2C780&ssl=1');
        background-size: cover;
        background-position: center;
        position: relative;
        z-index: 1;
        padding: 1.5rem;
    }
    .form-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(2px);
        z-index: 0;
    }
    .login-card {
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.98);
        padding: 1.8rem;
        border-radius: 1.8rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }
    .logo-img {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    .secondary-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .btn-secondary {
        width: 100%;
    }
    .global-header {
        padding: 0.8rem 1rem;
    }
    .logo-img {
        height: 32px;
    }
}