﻿/* ============================================
   e-SendBill - Login
   CSS para Login.cshtml
   Paleta: Cinza e Laranja (#ff8c00, #e67e00)
   ============================================ */

/* Container principal */
.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 1.0rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.divider-line {
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #e0e0e0);
    border-radius: 1px;
}

/* ========== INFO BANNER ========== */
.info-banner {
    background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
    border-left: 4px solid #ff8c00;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-banner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-banner-text {
    flex: 1;
}

.info-banner-description {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ========== INTRO TEXT ========== */
.intro-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ========== FORM ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.required {
    color: #ff8c00;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background-color: #f9f9f9;
    color: #333;
    box-sizing: border-box;
}

    .form-input:focus {
        outline: none;
        border-color: #ff8c00;
        box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
        background-color: #fff;
    }

    .form-input::placeholder {
        color: #aaa;
    }

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    color: #999;
    transition: color 0.2s;
}

    .toggle-password:hover {
        color: #ff8c00;
    }

.validation-error {
    color: #c62828;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    display: block;
}

/* ========== FORGOT PASSWORD ========== */
.forgot-password {
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #ff8c00;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #e67e00;
        text-decoration: underline;
    }

/* ========== ERROR BANNER ========== */
.error-banner {
    background: #ffebee;
    color: #c62828;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #c62828;
}

.error-icon {
    font-size: 1rem;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== BUTTON CONTAINER ========== */
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.2s;
    min-width: 130px;
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* ========== SPINNER ========== */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ========== REGISTER SECTION ========== */
.register-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.register-link {
    color: #ff8c00;
    font-size: 1.0rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

    .register-link:hover {
        color: #e67e00;
        text-decoration: underline;
    }

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .login-form {
        padding: 1.5rem;
    }

    .button-container {
        justify-content: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .info-banner-description {
        font-size: 0.8rem;
    }
}
