/* auth.css - Estilos para login */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #111111;
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.login-header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.login-header p {
    opacity: 0.9;
    margin: 5px 0 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.login-body {
    padding: 30px;
}

/* Custom Input Components */
.custom-input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.custom-input-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5a6b82;
    margin-bottom: 6px;
    margin-left: 12px;
    letter-spacing: 0.2px;
}

.custom-input-box {
    display: flex;
    align-items: center;
    background-color: #ebf3fa;
    border: 1.5px solid #d4e3f2;
    border-radius: 26px;
    padding: 8px 18px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.custom-input-box:hover {
    border-color: #bad3eb;
    background-color: #e5f0f9;
}

.custom-input-box:focus-within {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.custom-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.custom-input-icon svg {
    display: block;
    stroke: #475569;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.custom-input-box:focus-within .custom-input-icon svg {
    transform: scale(1.08);
    stroke: #0f172a;
}

.custom-form-control {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    padding: 6px 0;
    width: 100%;
}

.custom-form-control::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.custom-form-control:focus {
    outline: none;
    box-shadow: none;
}

.custom-input-box.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.custom-input-box.is-invalid .custom-input-icon svg {
    stroke: #ef4444;
}

.custom-toggle-password {
    background: none;
    border: none;
    padding: 4px 6px;
    margin-left: 6px;
    color: #475569;
    cursor: pointer;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    border-radius: 50%;
}

.custom-toggle-password:hover {
    color: #0f172a;
    transform: scale(1.12);
}

.custom-toggle-password:focus {
    outline: none;
}

.custom-feedback {
    display: none;
    margin-left: 14px;
    font-size: 0.8rem;
    margin-top: 5px;
    color: #dc3545;
}

.custom-input-box.is-invalid + .custom-feedback {
    display: block;
}

.btn-login, #btnLogin {
    background: #111111;
    border: none;
    color: white;
    padding: 14px;
    border-radius: 26px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-login:hover:not(:disabled), #btnLogin:hover:not(:disabled) {
    background: #222222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.btn-login:active:not(:disabled), #btnLogin:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled, #btnLogin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
    background: #f8f9fa;
}

/* Alertas */
.alert {
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert .btn-close {
    padding: 1rem;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-card {
        margin: 10px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-footer > div {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loader personalizado */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}