/* 
   ULTRA-COMPACT PREMIUM FORM 
   Fully optimized for 15" Laptop displays
*/

:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-input-bg: #f9fafb;
    --auth-border: #e5e7eb;
}

.l-reg-form-wrapper {
    width: 100%;
    max-height: 90vh;
    padding: 0;
}

/* --- Navigation Tabs (Ultra Thin) --- */
.l-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    gap: 2px;
}

.l-auth-tab {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.l-auth-tab.active {
    background: #ffffff;
    color: var(--auth-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- Header Section (Compressed) --- */
.l-auth-header {
    margin-bottom: 0.75rem;
    text-align: left;
}

.l-auth-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.l-auth-header-title i {
    font-size: 1.1rem;
    color: var(--auth-primary);
}

.l-auth-header-title h3 {
    font-size: 1.1rem;
    font-weight: 850;
    color: var(--auth-text-main);
    margin: 0;
}

.l-auth-header p {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    margin: 2px 0 0 0;
}

/* --- Form Body (Tight Gaps) --- */
.l-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.l-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.l-auth-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.l-auth-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    margin-left: 2px;
		display: flex;
}

/* --- Input Styling (Low Height) --- */
.l-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.l-input-box > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 5;
}

.l-auth-input {
    width: 100%;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 5px 5px 5px 32px !important;
    font-size: 0.85rem;
    color: var(--auth-text-main);
    transition: all 0.2s;
		line-height: 1.6!important;
}

/* Specific padding for password fields to clear the toggle */
input[type="password"].l-auth-input {
    padding-right: 35px !important;
}

.l-auth-input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    outline: none;
}

/* Скрываем стандартную иконку глаза в Edge/IE */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* Password Toggle - VERTICAL CENTERING FIX */
.l-input-box .password-toggle {
    position: absolute;
    right: 15px; /* Moved further inside to prevent "leaking" out of the border */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 20px;
    height: 20px;
}

.l-input-box .password-toggle i {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    font-size: 14px !important;
}

.l-input-box .password-toggle:hover {
    color: var(--auth-primary);
}

/* --- Captcha (Minified Horizontal) --- */
.l-captcha-box {
    padding: 8px;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}

.l-captcha-layout-horizontal {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.l-captcha-image-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.l-captcha-inner-img {
    height: 42px;
    flex: 1;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.l-captcha-inner-img img {
    height: 100%;
    width: auto;
}

.l-captcha-refresh {
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.l-captcha-input-section .l-captcha-input {
    width: 100%;
    text-align: center;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.l-captcha-hint-small {
    font-size: 0.6rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 4px;
}

/* --- Action Buttons Container --- */
.form-reg-auth {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 0px solid #e9ecef;
}

/* --- Submit Button (Slim) --- */
.l-auth-btn-primary {
    width: 100%;
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    margin-top: 2px;
}

.l-auth-btn-primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
}

.l-auth-footer {
    font-size: 0.65rem;
    color: var(--auth-text-muted);
    text-align: center;
    margin-top: 0.4rem;
}

.l-auth-footer a {
    color: var(--auth-primary);
    text-decoration: none;
}

@media (max-width: 480px) {
    .l-auth-row {
        /* grid-template-columns: 1fr; */
    }
    
    .l-captcha-layout-horizontal {
        /* grid-template-columns: 1fr; */
    }
}
