:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-gradient: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    --card-glass: rgba(255, 255, 255, 0.95);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Hind Vadodara', 'Poppins', sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, select, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0.15;
    z-index: -1;
    filter: blur(80px);
}
body::before { top: -100px; left: -100px; }
body::after { bottom: -100px; right: -100px; }

.container {
    width: 100%;
    max-width: 1140px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-section {
    color: white;
    padding: 10px;
}

.hero-section .logo-wrapper {
    margin-bottom: 25px;
}

.hero-section .logo {
    font-size: 2.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    width: 85px;
    height: 85px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-section .logo i {
    background: linear-gradient(to right, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.25;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .subtitle {
    font-size: 1.25em;
    color: #94a3b8;
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-features {
    list-style: none;
    margin-top: 25px;
}

.hero-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e2e8f0;
    transition: transform 0.2s ease;
}

.hero-features li:hover {
    transform: translateX(5px);
}

.hero-features li i {
    font-size: 1.2em;
    color: var(--accent);
}

.hero-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
    align-items: center;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.contact-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
}

.trial-notice-box {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.trial-notice-box .notice-title {
    color: #f59e0b;
    font-size: 0.95em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.trial-notice-box p {
    font-size: 0.92em;
    color: #cbd5e1;
    line-height: 1.6;
}

.trial-notice-box .badge-free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.trial-notice-box .badge-warning {
    color: #f87171;
    font-weight: 600;
}

.auth-card {
    background: var(--card-glass);
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    background: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab.active {
    color: var(--primary);
    background: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 22px;
    position: relative;
}

.input-group i:not(.select-icon) {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1em;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 500;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.input-group input:focus + i {
    color: var(--primary-light);
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group .select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 22px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #1e40af);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.btn-otp {
    padding: 16px 24px;
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-otp:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.btn-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.forgot-link {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 24px;
}

.forgot-link a {
    color: var(--text-light);
    font-size: 0.9em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
}

.forgot-link a:hover {
    color: var(--primary-light);
}

.msg {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    display: none;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
}

.msg.error {
    background: #fef2f2;
    color: var(--error);
    display: block;
    border: 1px solid #fee2e2;
}

.msg.success {
    background: #ecfdf5;
    color: var(--success);
    display: block;
    border: 1px solid #d1fae5;
}

.msg.info {
    background: #f0f9ff;
    color: #0369a1;
    display: block;
    border: 1px solid #e0f2fe;
}

.otp-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.otp-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.otp-row .btn-otp {
    flex-shrink: 0;
}

.timer {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.trial-info {
    background: #f0fdf4;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #166534;
    border-left: 4px solid var(--success);
    font-weight: 500;
}

.password-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: -14px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.otp-status {
    font-size: 13px;
    margin: 8px 0 14px 0;
    min-height: 20px;
    font-weight: 500;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.05);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.6em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.6;
}

.modal-close {
    background: #f1f5f9;
    color: var(--text-dark);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-footer {
    margin-top: 15px;
}

#regCategory {
    appearance: none;
    cursor: pointer;
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 500;
}

#regCategory:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.otp-display-box {
    background: #f1f5f9;
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--primary);
    margin: 20px 0;
}

.visitor-counter-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.visitor-counter-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.visitor-counter-badge i {
    color: var(--accent);
    font-size: 16px;
}

.visitor-counter-badge strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.05em;
}

.page-footer {
    width: 100%;
    max-width: 1140px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    z-index: 1;
}

.page-footer .footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.page-footer .footer-contact-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
}

.page-footer .company-name {
    font-size: 1.05em;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .hero-section {
        text-align: center;
    }
    .hero-features li {
        justify-content: center;
    }
    .hero-badges-wrapper {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px 10px;
    }
    .auth-card {
        padding: 35px 20px;
        border-radius: 24px;
    }
    .hero-section h1 {
        font-size: 2.3em;
    }
    .otp-row {
        flex-direction: column;
        align-items: stretch;
    }
    .otp-row .btn-otp {
        width: 100%;
        padding: 14px;
    }
    .form-grid-two {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 0;
    }
    .form-grid-two .input-group {
        margin-bottom: 15px;
    }
    .visitor-counter-badge {
        bottom: 12px;
        right: 12px;
        font-size: 12px;
        padding: 8px 14px;
    }
}