/* login.css - Rapira split login */

.login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    background: radial-gradient(ellipse at 20% 20%, rgba(255, 122, 61, 0.14), transparent 55%),
                radial-gradient(ellipse at 90% 80%, rgba(70, 224, 176, 0.08), transparent 50%),
                #0d0f12;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.login-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

/* ===== ЛЕВАЯ ЧАСТЬ — брендинг ===== */
.login-brand {
    padding: 60px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--rp-line, rgba(255,255,255,.07));
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.08), transparent 60%);
    pointer-events: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #eef0f3;
    position: relative;
    z-index: 1;
}

.brand-logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(140deg, #ff7a3d, #ff5c1a);
    color: #14100c;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 6px 22px rgba(255, 122, 61, 0.45);
}

.brand-headline {
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.brand-headline .tag {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid rgba(255, 122, 61, 0.35);
    border-radius: 100px;
    color: #ffb387;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.brand-headline h2 {
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    color: #eef0f3;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.brand-headline h2 em {
    font-style: normal;
    color: #ff7a3d;
}

.brand-headline p {
    font-size: 15px;
    color: #7c838f;
    line-height: 1.6;
    max-width: 400px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #c3c7cf;
    font-weight: 500;
}

.brand-feature i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 122, 61, 0.12);
    color: #ff7a3d;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ===== ПРАВАЯ ЧАСТЬ — форма ===== */
.login-form-wrap {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 36px 32px 32px;
    background: #15181d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-header { text-align: left; }
.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #eef0f3;
    margin-bottom: 4px;
    letter-spacing: -0.8px;
}
.login-header p {
    font-size: 13px;
    color: #7c838f;
    margin: 0;
    font-weight: 500;
}

.login-form { display: none; flex-direction: column; gap: 16px; }
.login-form.active { display: flex; }

.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
    font-size: 11px;
    font-weight: 700;
    color: #c3c7cf;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.input-group input {
    height: 48px;
    padding: 0 15px;
    background: #1b1f26;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    color: #eef0f3;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-group input:focus {
    border-color: #ff7a3d;
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.15);
}
.input-group input::placeholder { color: #5c626d; }
.input-group input.input-error { border-color: #ff5c72; }

.login-btn {
    height: 48px;
    width: 100%;
    background: #ff7a3d;
    border: none;
    border-radius: 12px;
    color: #14100c;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.1px;
}
.login-btn:hover { background: #ffb387; transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.login-footer {
    text-align: center;
    font-size: 12px;
    color: #7c838f;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-weight: 500;
}
.login-footer a { color: #7c838f; text-decoration: none; transition: color 0.2s ease; }
.login-footer a:hover { color: #ff7a3d; }

.back-btn {
    background: transparent;
    border: none;
    color: #7c838f;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.back-btn:hover { color: #ff7a3d; }

/* ===== OTP ===== */
.otp-container { display: flex; gap: 7px; justify-content: space-between; }

.otp-input {
    width: 100% !important;
    height: 52px !important;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px !important;
    font-weight: 700;
    padding: 0 !important;
    background: #1b1f26;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #eef0f3;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.otp-input:focus {
    border-color: #ff7a3d;
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.15);
}

/* ===== ERROR ANIMATION ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake { animation: shake 0.5s ease-in-out; }

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 13px 22px;
    border-radius: 12px;
    z-index: 9999;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    max-width: 420px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.notification.success { background: #14342a; color: #46e0b0; border-color: rgba(70, 224, 176, 0.3); }
.notification.error   { background: #3a1a20; color: #ff5c72; border-color: rgba(255, 92, 114, 0.35); }
.notification.info    { background: #2b2118; color: #ffb387; border-color: rgba(255, 122, 61, 0.3); }
.notification.warning { background: #3a3210; color: #ffd66b; border-color: rgba(255, 214, 107, 0.3); }

@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }
.notification.removing { animation: slideOutRight 0.3s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .login-container { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
    .login-form-wrap { padding: 14px; }
    .login-card { padding: 26px 20px 24px; border-radius: 16px; }
    .login-header h1 { font-size: 21px; }
    .otp-input { height: 46px !important; font-size: 18px !important; }
}