﻿:root {
    --mm-auth-bg: #030a06;
    --mm-auth-bg-soft: #07120b;
    --mm-auth-card: rgba(8, 20, 12, 0.96);
    --mm-auth-card-soft: rgba(14, 30, 18, 0.82);
    --mm-auth-border: rgba(178, 237, 31, 0.22);
    --mm-auth-border-strong: rgba(178, 237, 31, 0.48);
    --mm-auth-lime: #b2ed1f;
    --mm-auth-lime-hover: #c4ff2d;
    --mm-auth-white: #f6f8f4;
    --mm-auth-muted: #9ca99f;
    --mm-auth-danger: #ff6b6b;
    --mm-auth-success: #39d98a;
    --mm-auth-warning: #f5c451;
    --mm-auth-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

/* Main page */
.mm-investor-auth-page {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 72px 0;
    overflow: hidden;
    background: radial-gradient( circle at 15% 15%, rgba(178, 237, 31, 0.12), transparent 32% ), radial-gradient( circle at 85% 80%, rgba(43, 120, 65, 0.16), transparent 35% ), linear-gradient( 145deg, var(--mm-auth-bg) 0%, var(--mm-auth-bg-soft) 48%, #020604 100% );
}

    .mm-investor-auth-page::before {
        position: absolute;
        inset: 0;
        pointer-events: none;
        content: "";
        opacity: 0.18;
        background-image: linear-gradient( rgba(178, 237, 31, 0.05) 1px, transparent 1px ), linear-gradient( 90deg, rgba(178, 237, 31, 0.05) 1px, transparent 1px );
        background-size: 46px 46px;
    }

    .mm-investor-auth-page > .container {
        position: relative;
        z-index: 1;
    }

/* Main card */
.mm-investor-auth-card {
    overflow: hidden;
    border: 1px solid var(--mm-auth-border);
    border-radius: 26px;
    color: var(--mm-auth-white);
    background: linear-gradient( 145deg, rgba(14, 29, 18, 0.98), rgba(5, 14, 8, 0.98) );
    box-shadow: var(--mm-auth-shadow);
    backdrop-filter: blur(18px);
}

    .mm-investor-auth-card::before {
        display: block;
        width: 100%;
        height: 4px;
        content: "";
        background: linear-gradient( 90deg, transparent, var(--mm-auth-lime), transparent );
    }

/* Header */
.mm-investor-auth-header {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.mm-investor-auth-icon {
    display: inline-grid;
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid var(--mm-auth-border-strong);
    border-radius: 22px;
    color: var(--mm-auth-lime);
    background: rgba(178, 237, 31, 0.08);
    box-shadow: 0 0 0 7px rgba(178, 237, 31, 0.025), 0 18px 45px rgba(0, 0, 0, 0.25);
}

    .mm-investor-auth-icon i {
        font-size: 2rem;
    }

.mm-investor-auth-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--mm-auth-lime);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mm-investor-auth-title {
    margin-bottom: 12px;
    color: var(--mm-auth-white);
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.mm-investor-auth-copy {
    margin-bottom: 0;
    color: var(--mm-auth-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* Form */
.mm-investor-auth-form .form-label {
    margin-bottom: 8px;
    color: var(--mm-auth-white);
    font-size: 0.92rem;
    font-weight: 700;
}

.mm-investor-auth-form .form-control,
.mm-investor-auth-form .form-select,
.mm-investor-auth-form .input-group-text {
    min-height: 52px;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--mm-auth-white);
    background-color: rgba(255, 255, 255, 0.045);
}

    .mm-investor-auth-form .form-control::placeholder {
        color: rgba(246, 248, 244, 0.38);
    }

    .mm-investor-auth-form .form-control:focus,
    .mm-investor-auth-form .form-select:focus {
        border-color: var(--mm-auth-lime);
        color: var(--mm-auth-white);
        background-color: rgba(255, 255, 255, 0.065);
        box-shadow: 0 0 0 0.2rem rgba(178, 237, 31, 0.13);
    }

    .mm-investor-auth-form .form-control[readonly] {
        color: #cad4cc;
        background-color: rgba(255, 255, 255, 0.025);
    }

.mm-investor-auth-form .input-group-text {
    min-width: 54px;
    justify-content: center;
    color: var(--mm-auth-lime);
}

.mm-investor-auth-form .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    border-color: rgba(255, 255, 255, 0.26);
    background-color: rgba(255, 255, 255, 0.04);
}

    .mm-investor-auth-form .form-check-input:checked {
        border-color: var(--mm-auth-lime);
        background-color: var(--mm-auth-lime);
    }

    .mm-investor-auth-form .form-check-input:focus {
        border-color: var(--mm-auth-lime);
        box-shadow: 0 0 0 0.2rem rgba(178, 237, 31, 0.13);
    }

.mm-investor-auth-form .form-check-label {
    color: #d8ded9;
}

.mm-investor-auth-form .form-text {
    color: var(--mm-auth-muted);
}

.mm-investor-auth-form option {
    color: #111;
}

/* Primary button */
.mm-investor-auth-primary {
    min-height: 54px;
    border: 1px solid var(--mm-auth-lime);
    border-radius: 12px;
    color: #061006;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--mm-auth-lime), #8fc900 );
    box-shadow: 0 16px 35px rgba(178, 237, 31, 0.13);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .mm-investor-auth-primary:hover,
    .mm-investor-auth-primary:focus {
        border-color: var(--mm-auth-lime-hover);
        color: #030803;
        background: linear-gradient( 135deg, var(--mm-auth-lime-hover), #9edb08 );
        box-shadow: 0 18px 42px rgba(178, 237, 31, 0.21);
        transform: translateY(-2px);
    }

/* Secondary button */
.mm-investor-auth-secondary {
    min-height: 50px;
    border: 1px solid var(--mm-auth-border-strong);
    border-radius: 12px;
    color: var(--mm-auth-white);
    font-weight: 700;
    background: rgba(178, 237, 31, 0.045);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

    .mm-investor-auth-secondary:hover,
    .mm-investor-auth-secondary:focus {
        border-color: var(--mm-auth-lime);
        color: var(--mm-auth-lime);
        background: rgba(178, 237, 31, 0.09);
    }

/* Password toggle */
.mm-investor-auth-form .password-toggle,
.mm-investor-auth-form #passwordToggle {
    min-width: 54px;
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--mm-auth-lime);
    background: rgba(255, 255, 255, 0.045);
}

    .mm-investor-auth-form .password-toggle:hover,
    .mm-investor-auth-form #passwordToggle:hover {
        border-color: var(--mm-auth-lime);
        color: #061006;
        background: var(--mm-auth-lime);
    }

/* Links */
.mm-investor-auth-link {
    color: var(--mm-auth-lime);
    font-weight: 700;
    text-decoration: none;
}

    .mm-investor-auth-link:hover,
    .mm-investor-auth-link:focus {
        color: var(--mm-auth-lime-hover);
        text-decoration: underline;
    }

/* Dividers */
.mm-investor-auth-divider {
    margin: 28px 0;
    border-color: rgba(255, 255, 255, 0.11);
    opacity: 1;
}

/* Security information */
.mm-investor-auth-security {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(178, 237, 31, 0.12);
    border-radius: 14px;
    color: var(--mm-auth-muted);
    background: rgba(178, 237, 31, 0.035);
}

    .mm-investor-auth-security i {
        flex: 0 0 auto;
        color: var(--mm-auth-lime);
        font-size: 1.3rem;
    }

    .mm-investor-auth-security p {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.65;
    }

/* Registration sections */
.mm-investor-auth-section {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 18px;
    background: var(--mm-auth-card-soft);
}

    .mm-investor-auth-section + .mm-investor-auth-section {
        margin-top: 22px;
    }

.mm-investor-auth-section-header {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-bottom: 20px;
}

    .mm-investor-auth-section-header i {
        color: var(--mm-auth-lime);
        font-size: 1.5rem;
    }

    .mm-investor-auth-section-header h2 {
        margin: 0 0 3px;
        color: var(--mm-auth-white);
        font-size: 1.05rem;
        font-weight: 800;
    }

    .mm-investor-auth-section-header p {
        margin: 0;
        color: var(--mm-auth-muted);
        font-size: 0.82rem;
    }

/* Verified badge */
.mm-investor-auth-badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(57, 217, 138, 0.28);
    border-radius: 999px;
    color: var(--mm-auth-success);
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(57, 217, 138, 0.08);
}

/* OTP input */
.mm-investor-otp-input {
    height: 62px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.65rem;
}

/* Success page */
.mm-investor-auth-success-icon {
    display: inline-grid;
    width: 88px;
    height: 88px;
    margin-bottom: 22px;
    place-items: center;
    border: 1px solid rgba(57, 217, 138, 0.34);
    border-radius: 28px;
    color: var(--mm-auth-success);
    background: rgba(57, 217, 138, 0.08);
    box-shadow: 0 18px 48px rgba(57, 217, 138, 0.1);
}

    .mm-investor-auth-success-icon i {
        font-size: 2.8rem;
    }

.mm-investor-auth-code {
    padding: 25px;
    border: 1px solid var(--mm-auth-border-strong);
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(178, 237, 31, 0.09), rgba(178, 237, 31, 0.025) );
}

    .mm-investor-auth-code small {
        color: var(--mm-auth-muted);
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .mm-investor-auth-code strong {
        color: var(--mm-auth-lime);
        font-size: clamp(1.5rem, 4vw, 2.15rem);
        letter-spacing: 0.035em;
    }

.mm-investor-auth-detail {
    height: 100%;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

    .mm-investor-auth-detail small {
        color: var(--mm-auth-muted);
    }

    .mm-investor-auth-detail strong {
        display: block;
        margin-top: 5px;
        color: var(--mm-auth-white);
    }

/* Alerts and validation */
.mm-investor-auth-page .alert-danger {
    border-color: rgba(255, 107, 107, 0.28);
    color: #ffb3b3;
    background: rgba(255, 107, 107, 0.08);
}

.mm-investor-auth-page .alert-warning {
    border-color: rgba(245, 196, 81, 0.28);
    color: #f7d98a;
    background: rgba(245, 196, 81, 0.08);
}

.mm-investor-auth-page .alert-success {
    border-color: rgba(57, 217, 138, 0.28);
    color: #90ecc0;
    background: rgba(57, 217, 138, 0.08);
}

.mm-investor-auth-page .text-danger,
.mm-investor-auth-page .field-validation-error {
    color: var(--mm-auth-danger) !important;
}

.mm-investor-auth-page .text-muted {
    color: var(--mm-auth-muted) !important;
}

.mm-investor-auth-page .text-success {
    color: var(--mm-auth-success) !important;
}

/* Responsive */
@media (max-width: 767.98px) {
    .mm-investor-auth-page {
        padding: 38px 0;
    }

    .mm-investor-auth-card {
        border-radius: 20px;
    }

    .mm-investor-auth-section {
        padding: 18px;
    }

    .mm-investor-auth-title {
        font-size: 1.85rem;
    }

    .mm-investor-auth-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .mm-investor-otp-input {
        letter-spacing: 0.42rem;
    }
}
