/* =====================================================
   NetRegis.com — Auth Pages Stylesheet
   Login, Register, Forgot/Reset Password
   ===================================================== */

/* === Auth Body === */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* === Background Effects === */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.auth-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.auth-bg-glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: rgba(26, 86, 219, 0.06);
}

.auth-bg-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: rgba(5, 150, 105, 0.04);
}

/* === Auth Wrapper === */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* === Auth Container (Two-panel) === */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1060px;
    min-height: 640px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}

.auth-container-single {
    max-width: 520px;
    min-height: auto;
}

/* === Brand Panel (Left) === */
.auth-brand-panel {
    flex: 0 0 420px;
    background:
        linear-gradient(180deg, rgba(26, 86, 219, 0.04) 0%, rgba(5, 150, 105, 0.02) 100%),
        var(--surface2);
    border-right: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.06), transparent 70%);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

/* Brand Hero */
.auth-brand-hero {
    margin: 40px 0 36px;
}

.auth-brand-hero h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-brand-hero p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* Brand Features */
.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 14px;
}

.auth-brand-feature svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* === Form Panel (Right) === */
.auth-form-panel {
    flex: 1;
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-form-panel-centered {
    width: 100%;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

/* === Logo === */
.auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.auth-logo-mobile {
    display: none;
    margin-bottom: 28px;
}

/* === Form Header === */
.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form-header p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
}

/* Icon Circle */
.auth-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 86, 219, 0.06);
    border: 1px solid rgba(26, 86, 219, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.auth-icon-circle-green {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
    color: var(--accent);
}

/* === Auth Form === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-required {
    color: var(--danger);
    margin-left: 2px;
}

.form-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.form-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.form-link:hover {
    color: var(--primary-dark);
}

/* Input Wrapper */
.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.form-input-wrap:focus-within .form-icon {
    color: var(--primary);
}

/* Input */
.form-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px 12px 44px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
    background: #ffffff;
}

.form-input.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-input.input-success {
    border-color: var(--accent);
}

/* Toggle Password */
.form-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    z-index: 1;
}

.form-toggle-password:hover {
    color: var(--text);
}

/* Error Text */
.form-error {
    font-size: 12px;
    color: var(--danger);
    min-height: 0;
    transition: all 0.2s;
}

.form-error:not(:empty) {
    min-height: 16px;
    margin-top: 2px;
}

/* === Checkbox === */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-dim);
}

.form-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.form-checkbox input:checked~.checkbox-mark {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox input:checked~.checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-link-inline {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-link-inline:hover {
    color: var(--primary-dark);
}

/* === Password Strength === */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.3s;
}

.strength-bar.active-weak {
    background: var(--danger);
}

.strength-bar.active-fair {
    background: var(--accent2);
}

.strength-bar.active-good {
    background: #22c55e;
}

.strength-bar.active-strong {
    background: var(--accent);
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.strength-weak {
    color: var(--danger);
}

.strength-fair {
    color: var(--accent2);
}

.strength-good {
    color: #22c55e;
}

.strength-strong {
    color: var(--accent);
}

/* Password Rules */
.password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-top: 6px;
}

.password-rules .rule {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.password-rules .rule.rule-pass {
    color: var(--accent);
}

.password-rules .rule.rule-pass .rule-icon {
    color: var(--accent);
}

.rule-icon {
    font-size: 10px;
    transition: all 0.2s;
}

/* === Submit Button === */
.auth-submit {
    margin-top: 6px;
    position: relative;
    height: 50px;
}

.auth-submit.loading .btn-text {
    opacity: 0;
}

.auth-submit.loading .btn-spinner {
    display: inline-block !important;
    position: absolute;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* === Divider === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* === Alt Action === */
.auth-alt-action {
    text-align: center;
}

.auth-alt-action p {
    color: var(--text-dim);
    font-size: 14px;
}

.auth-alt-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-alt-link:hover {
    color: var(--primary-dark);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--primary);
}

/* === Auth Footer === */
.auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--text-muted);
    font-size: 12px;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--text-dim);
}

.auth-footer span {
    color: var(--text-muted);
    font-size: 10px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-logo-mobile {
        display: inline-flex !important;
    }

    .auth-container {
        max-width: 480px;
    }

    .auth-form-panel {
        padding: 36px 28px;
    }
}

@media (max-width: 520px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-container {
        border-radius: 20px;
        min-height: auto;
    }

    .auth-form-panel {
        padding: 28px 20px;
    }

    .auth-form-header h2 {
        font-size: 22px;
    }

    .password-rules {
        grid-template-columns: 1fr;
    }

    .auth-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}