﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    height: 100%;
}

.auth-box {
    width: 100%;
    max-width: 600px; /* Controls total layout width */
    min-width: 290px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    padding: 2rem 3rem;
    text-align: center;
    box-sizing: border-box;
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #111827;
}

form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input:focus {
    border-color: #ea1c24;
    outline: none;
}

.name-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Ensures it wraps on small screens */
}

.name-row .field {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 193px;
    /* min-width: 0;  Prevents input from overflowing */
}

button {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    /*    background: #ea1c24;*/
    background: #1c6cba;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    button:hover {
        background: #1c6cba;
    }

label {
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.text-danger {
    color: #b91c1c;
    font-size: 0.875rem;
}
form .text-danger {    
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.error-state {
    border-color: #b91c1c;
}
.formatted-link {
    display: inline-block;
    color: #1C6CBA;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.formatted-link:hover {
    color: #1d4ed8; /* blue-700 */
    text-decoration: underline;
}

.remember-me-element {
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    display: inline-flex;
    position: relative;
}

/* Hide the native checkbox but keep it functional */
.remember-me-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.remember-me-label {
    flex: 1 1 0;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    color: #041A31;
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 40px; 
}

/*Custom checkbox*/
.remember-me-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 27px;
    border-radius: 4px;
    background: white url("/images/Group-18.svg") no-repeat center/cover;
    transition: all 0.2s ease;
}
/*Custom checkbox checked*/
.remember-me-checkbox:checked + .remember-me-label::before {
    border: 3px solid #27823B;
    background: #27823B url("/images/Group-18-checkbox.svg") no-repeat center/cover;
}

.auth-box h1.login-header {
    color: #093F75;
    font-size: 24px;
    font-weight: 700;
    word-wrap: break-word
}

.login-header {
    color: #093F75;
    font-size: 24px;
    font-weight: 700;
    word-wrap: break-word
}
.login-button {
    font-size: 18px;
    font-weight: 700;
    word-wrap: break-word;
    margin-bottom: 15px
}

.signup-label {
    color: #041A31;
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
}
.signup-link {
    color: #1C6CBA;   
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap; /* ✅ Allow wrapping */
    text-align: left;
}

    .agreement-check .form-check-input {
        width: 1.25rem; /* wider */
        height: 1.25rem; /* taller */
        transform: scale(1.25); /* scales checkbox including tick */
        border: 2px solid #6b7280; /* makes border thicker */
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    .agreement-check .form-check-label {
        line-height: 1.4;
        font-weight: normal;
        font-size: 0.75rem;
        white-space: normal; /* ✅ Allow text to wrap */
        flex: 1;
    }

        .agreement-check .form-check-label a {
            color: #2563eb;
            text-decoration: none;
            font-weight: normal;
            font-size: 0.75rem;
        }

            .agreement-check .form-check-label a:hover {
                text-decoration: underline;
            }

button:disabled {
    background-color: #d1d5db; /* Tailwind gray-300 */
    cursor: not-allowed;
    color: #6b7280; /* Tailwind gray-600 */
    opacity: 0.7;
}

.logo-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-header img {
    object-fit: contain;
    margin: auto;
    padding: 4px;
    width: 60%;
    height:100%;
}


/* Error Banner Styles */
.error-banner {
    display: flex;
    align-items: center;
    background-color: #fecaca; /* Light red background */
    border: 1px solid #f87171; /* Red border */
    border-left: 12px solid #dc2626; /* Even thicker red left border */
    border-radius: 0; /* Remove rounded corners */
    padding: 16px;
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.error-banner-icon {
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.error-banner-icon svg {
    width: 18px;
    height: 18px;
    color: #dc2626; /* Red icon */
}

.error-banner-content {
    flex: 1;
    color: #7f1d1d; /* Dark red text */
    font-weight: 400;
}

.error-prefix {
    font-weight: 600;
    color: #991b1b; /* Darker red for "Error:" */
}

.error-banner-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #991b1b;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    border-radius: 0; /* Remove rounded corners from dismiss button */
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-banner-dismiss:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

.error-banner-dismiss svg {
    width: 16px;
    height: 16px;
}

/* Alternative banner styles for different error types */
.error-banner.warning {
    background-color: #fef3c7; /* Light yellow */
    border-color: #f59e0b; /* Orange border */
    border-left-color: #d97706; /* Orange left border */
}

    .error-banner.warning .error-banner-content,
    .error-banner.warning .error-banner-message {
        color: #92400e; /* Dark orange text */
    }

    .error-banner.warning .error-banner-title {
        color: #78350f; /* Darker orange for title */
    }

    .error-banner.warning .error-banner-icon svg {
        color: #d97706; /* Orange icon */
    }

.error-banner.info {
    background-color: #dbeafe; /* Light blue */
    border-color: #3b82f6; /* Blue border */
    border-left-color: #1d4ed8; /* Blue left border */
}

    .error-banner.info .error-banner-content,
    .error-banner.info .error-banner-message {
        color: #1e3a8a; /* Dark blue text */
    }

    .error-banner.info .error-banner-title {
        color: #1e40af; /* Darker blue for title */
    }

    .error-banner.info .error-banner-icon svg {
        color: #1d4ed8; /* Blue icon */
    }
/* Password Requirements Styling */
.password-requirements {
    font-size: 0.75rem;
    color: #6b7280; /* Gray color for informational text */
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-style: italic;
    text-align: left;
}