/*BASE MODAL STYLES */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 15, 0.4);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(1px);
}

.custom-modal-content {
    width: 100%;
    max-width: 420px;
    transition: max-width 0.3s ease;
    animation: dropIn 0.3s ease-out;
}

.custom-auth-card {
    background-color: #0B0F19;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    color: white;
}

.custom-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 100;
}

.custom-close-btn:hover {
    color: white;
}

.custom-auth-card h2 {
    color: white;
    font-family: sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
}

/* LOGIN FORM STYLES*/
.custom-field-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.field-icon-col {
    padding-bottom: 12px;
}

.field-input-col {
    flex: 1;
    text-align: left;
}

/*SIGNUP FORM GRID STYLES */
.signup-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.signup-icon-area {
    width: 24px;
    padding-bottom: 12px;
    flex-shrink: 0;
}

.signup-inputs-area {
    flex: 1;
    display: flex;
    gap: 15px;
    text-align: left;
}

.split-inputs .input-group {
    flex: 1;
}

/* Makes First/Last Name equal width */

.half-row-container {
    display: flex;
    align-items: flex-end;
    flex: 1;
    gap: 10px;
}

/* Input Styling */
.input-group {
    width: 100%;
}

.input-group label,
.field-input-col label {
    font-size: 0.85rem;
    color: #ccc;
    display: block;
    margin-bottom: 8px;
    font-family: sans-serif;
}

.styled-input {
    width: 100%;
    background-color: #121826;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.styled-input:focus {
    border-color: #455CE9;
}

/* Icons */
.my-icon {
    width: 24px;
    height: auto;
    display: block;
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
}

/* Footer & Buttons */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #ccc;
    font-family: sans-serif;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    color: #455CE9;
    text-decoration: none;
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #455CE9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-submit-btn:hover {
    background-color: #3b4ec7;
}

.form-footer-text {
    margin-top: 20px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-family: sans-serif;
}

.form-footer-text a {
    color: #455CE9;
    text-decoration: none;
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    cursor: pointer;
    color: #9ca3af;
    transition: 0.3s;
    font-size: 1rem;
    font-family: sans-serif;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    color: white;
}

.form-header {
    margin-top: 35px;
}

/* Role Selection Buttons */
.custom-role-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.custom-role-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-family: sans-serif;
}

.custom-role-btn:hover {
    background-color: #455CE9;
    border-color: #455CE9;
}

.custom-auth-footer {
    color: #9ca3af;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.custom-auth-footer a {
    color: #455CE9;
    text-decoration: none;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORGOT PASSWORD MODAL ONLY*/
/* --- DARK MODAL THEME --- */
.forgot-pass-content {
    background-color: #0B1120;
    /* Dark Navy Background */
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    border: 1px solid #1e293b;
    position: relative;
}

/* Header & Back Link */
.fp-header {
    text-align: left;
    margin-bottom: 20px;
}

.back-link-fp {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link-fp:hover {
    color: white;
}

/* Logo Area */
.logo-area {
    margin-bottom: 25px;
}

.fp-main-logo {
    height: 45px;
    display: block;
    margin: 0 auto;
}

/* Titles & Text */
h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.fp-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* --- INPUT GROUPS --- */
.fp-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 8px;
    margin-left: 42px;
}

.fp-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.fp-icon-outside {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

/* The Input Field */
.input-wrapper input {
    width: 100%;
    background-color: #111827;
    border: 1px solid #374151;
    color: white;
    padding: 12px 15px;
    padding-right: 40px;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #455CE9;
}

/* The Eye Icon (Inside Right) */
.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.eye-icon:hover {
    opacity: 1;
}

/* --- CENTERED BUTTON --- */
.btn-fp-primary {
    display: block;
    width: 220px;
    margin: 35px auto 0;
    background-color: #455CE9;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-fp-primary:hover {
    background-color: #334ac0;
}

.resend-link {
    text-align: left;
    margin-left: 42px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: -10px;
    margin-bottom: 20px;
}

.resend-link a {
    color: #455CE9;
    text-decoration: none;
}