/* Login Page Styles - Mobile First */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #4D4D4D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-container {
    width: 100vw;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out;
    width: calc(100% - 20px);
    height: calc(100vh - 20px);
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Mobile: card ocupa quase toda a tela */
@media (max-width: 767px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        max-width: none;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a5c;
    margin-top: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.login-footer-divider {
    width: 100%;
    height: 1px;
    background-color: #dee2e6;
    margin: 1.25rem 0 1rem;
}

.login-footer-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-footer-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.forgot-password-link {
    color: #4D4D4D;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: left;
    margin-top: 8px;
}

.forgot-password-link:hover {
    color: #1a1a5c;
    text-decoration: underline;
}

.login-form {
    margin-top: 24px;
}

.login-form .form-label {
    font-weight: 500;
    color: #4D4D4D;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
    display: block;
    width: 100%;
}

.login-form .form-control {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.login-form .input-group {
    display: flex;
}

.login-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.login-form .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-left: none;
    border: 2px solid #e0e0e0;
    border-left: none;
    background: white;
    padding: 12px 16px;
    font-size: 18px;
    color: #4D4D4D;
}

.toggle-password-btn:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.login-form .input-group .btn:focus {
    box-shadow: none;
    border-color: #667eea;
}

    .login-form .btn-primary {
        background: #0A284B;
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 14px;
        font-weight: 600;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 40, 75, 0.4);
    background: #0d3561;
}

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

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 24px;
    padding: 12px 16px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

/* Tablet and Desktop: card centralizado com largura máxima */
@media (min-width: 768px) {
    .login-container {
        padding: 30px;
    }

    .login-card {
        padding: 40px 32px;
        width: 100%;
        max-width: 450px;
        height: auto;
        min-height: 500px;
    }

    .login-logo {
        max-width: 250px;
    }

    .login-title {
        font-size: 18px;
    }

    .login-subtitle {
        font-size: 16px;
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

