/* Theme Variables */
:root {
    --bg-color: #f1f5f9;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --header-bg: #ffffff;
    --header-border: #e2e8f0;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --text-muted: #64748b;
    --error-color: #ef4444;
    --success-color: #10b981;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --text-color: #f8fafc;
        --card-bg: #1e293b;
        --card-border: #334155;
        --header-bg: #1e293b;
        --header-border: #334155;
        --primary-color: #3b82f6;
        --primary-hover: #2563eb;
        --secondary-color: #475569;
        --secondary-hover: #334155;
        --input-bg: #0f172a;
        --input-border: #334155;
        --text-muted: #94a3b8;
    }
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    min-width: 360px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Elements */
.header { 
    background: var(--header-bg); 
    padding: 1rem; 
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--header-border); 
}
.header .nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 15px; 
    font-size: 0.95rem;
}
.header .nav-links a:hover { 
    color: var(--text-color); 
}
.header .brand {
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--primary-color); 
    margin-left: 0;
}

.container { 
    padding: 1.5rem 1rem; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
    box-sizing: border-box; 
    flex: 1; 
}

/* Components */
.card { 
    background: var(--card-bg); 
    padding: 1.5rem; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid var(--card-border); 
}

.btn { 
    background: var(--primary-color); 
    color: white; 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-size: 0.95rem; 
    display: inline-block; 
    border: none; 
    cursor: pointer; 
    text-align: center;
}
.btn:hover { 
    background: var(--primary-hover); 
}
.btn-secondary {
    background: var(--secondary-color);
}
.btn-secondary:hover {
    background: var(--secondary-hover);
}
.btn-block {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Utilities */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-4rem { margin-top: 4rem; }
.mb-1rem { margin-bottom: 1rem; }
.mb-2rem { margin-bottom: 2rem; }
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.text-muted { color: var(--text-muted); }

input { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    border: 1px solid var(--input-border); 
    background: var(--input-bg); 
    color: var(--text-color); 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 1rem;
}

/* Alerts and feedback */
.error { 
    color: var(--error-color); 
    margin-bottom: 10px; 
}
.success { 
    color: var(--success-color); 
    margin-bottom: 10px; 
}

/* Auth Forms */
.form-box { 
    background: var(--card-bg); 
    padding: 2rem 1.5rem; 
    border-radius: 8px; 
    border: 1px solid var(--card-border);
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto; 
    box-sizing: border-box;
}
.form-box.wide {
    max-width: 600px;
}
.form-box h2 { 
    margin-top: 0; 
}
.form-box a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

/* Typography */
h1 { font-size: 2.5rem; margin-top: 0; }
.lead { font-size: 1.1rem; }

/* 2FA specifics */
.qr-container {
    background: white; 
    padding: 10px; 
    display: inline-block; 
    border-radius: 4px; 
    margin: 20px 0;
    max-width: 100%;
}
.qr-container img {
    max-width: 100%;
    height: auto;
}
.monospace {
    font-family: monospace;
    word-break: break-all;
}

/* Mobile Responsiveness (min 360px optimized) */
@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
    .header .nav-links a {
        margin-left: 10px;
        margin-right: 10px;
    }
    h1 { font-size: 2rem; }
    .mt-4rem { margin-top: 2rem; }
    .form-box { padding: 1.5rem 1rem; }
}

/* Reg-like Landing Page */
.full-width {
    width: 100%;
    padding: 0;
    margin: 0;
}
.reg-hero {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    padding-bottom: 200px; /* space for overlapping cards */
}
.reg-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.reg-hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}
.reg-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    align-items: center;
}
.reg-header-left, .reg-header-right {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 12px;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.reg-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a202c;
    text-decoration: none;
    margin-right: 15px;
}
.reg-nav-item {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
}
.reg-nav-item .arrow {
    color: #a0aec0;
    margin-left: 4px;
}
.reg-btn-login {
    background: #1a202c;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.reg-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 150px;
}
.reg-title {
    color: white;
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}
.reg-search-container {
    max-width: 700px;
    margin: 0 auto;
}
.reg-search-box {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 16px;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.reg-search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: #2d3748;
}
.reg-search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.reg-whois {
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}
.reg-btn-search {
    background: #2d3748;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.reg-tlds {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.reg-tld {
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
}

.reg-cards-container {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: -150px;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.reg-card {
    flex: 1;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.reg-card-green {
    background: #10b981;
}
.reg-card-white {
    background: #ffffff;
}
.reg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.reg-card-green h2 { color: #064e3b; margin:0; font-size: 1.5rem; }
.reg-card-green .reg-card-subtitle { color: #064e3b; font-size: 0.9rem; font-weight: 500;}
.reg-card-white h2 { color: #1e293b; margin:0; font-size: 1.5rem; }
.reg-card-white .reg-card-subtitle { color: #64748b; font-size: 0.9rem; }
.reg-arrow-btn {
    display: inline-block;
    background: white;
    color: #10b981;
    width: 24px; height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    font-weight: bold;
}

.reg-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}
.reg-inner-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-sizing: border-box;
}
.reg-inner-item.border-hover {
    border: 1px solid #e2e8f0;
}
.reg-inner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.reg-inner-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 15px;
    flex: 1;
}
.reg-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.reg-inner-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .reg-inner-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .reg-header { flex-direction: column; gap: 15px; }
    .reg-cards-container { flex-direction: column; margin-top: 20px; }
    .reg-hero { min-height: 500px; padding-bottom: 50px; }
    .reg-hero-content { margin-top: 50px; }
    .reg-title { font-size: 2rem; }
    .reg-search-box { flex-direction: column; gap: 10px; background: transparent; box-shadow: none; }
    .reg-search-input { background: white; border-radius: 12px; width: 100%; }
    .reg-btn-search { width: 100%; }
}

/* Steps Block Styles */
.reg-steps-section {
    background: #f8fafc;
    padding: 80px 20px;
}
.reg-steps-container {
    max-width: 1200px;
    margin: 0 auto;
}
.reg-steps-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 50px;
}
.reg-steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.reg-step-item {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}
.reg-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.reg-step-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.reg-step-result .reg-step-heading,
.reg-step-result .reg-step-desc {
    color: white;
}
.reg-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    background: #3b82f6;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f8fafc;
}
.reg-step-icon {
    font-size: 2.5rem;
    margin-top: 15px;
    margin-bottom: 15px;
}
.reg-step-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}
.reg-step-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}
.reg-step-arrow {
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: bold;
}
.reg-step-equals {
    color: #10b981;
}
.reg-btn-primary {
    background: #4a90e2; /* vc.ru style pleasant blue */
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}
.reg-btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}
.reg-btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .reg-steps-grid {
        flex-direction: column;
        gap: 30px;
    }
    .reg-step-arrow {
        transform: rotate(90deg);
    }
}

/* Footer Styles */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 20px 40px;
    margin-top: 60px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-col h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-col h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
}
.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: white;
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
}
