:root {
    --bg: #070507;
    --accent1: #ff4f0f;
    --accent2: #ff6a00;
    --muted: #bfc8d6;
    --glass-border: rgba(255, 69, 0, 0.12);
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    background: linear-gradient(180deg, #050405 0%, #0b0505 60%);
    color: #000000;
    min-height: 100vh;
}

/* Background wrapper */
#bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#bg-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.pattern-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Main container positioned above background */
.register-main-wrapper {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: flex-start;
    /* Changed from center to flex-start to move content up */
    justify-content: center;
    padding: 40px 20px 40px;
    /* Reduced top padding from 60px to 40px */
}

.register-content {
    max-width: 90%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 0px;
    align-items: flex-start;
    /* Changed from center to flex-start */
}

/* Hero Section */
.hero {
    padding: 20px;
    margin-top: 15%;
    /* Remove top padding to move title up further */
}

.kicker {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 69, 0, 0.15);
    color: var(--accent2);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 6px 0 20px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.lead-text {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 56ch;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-badge {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Registration Card */
.register-card {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.94), rgba(22, 14, 14, 0.86));
    border-radius: 16px;
    padding: 32px;
    margin-top: 15%;
    /* Changed from 10% to 0 to align with hero section */
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(10, 6, 6, 0.6);
    backdrop-filter: blur(10px);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent2);
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1rem;
}

/* Messages */
.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
    border-left-color: var(--info);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

/* Password row - new class for password fields */
.password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    color: #ccd6df;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.6);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Validation feedback */
.feedback {
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

.feedback .success {
    color: var(--success);
}

.feedback .error {
    color: var(--error);
}

.password-match-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
    grid-column: span 2;
    /* Span both columns for password match error */
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border: none;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 90, 30, 0.24);
    transition: all 0.2s ease;
    margin: 20px 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 90, 30, 0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #666;
}

.login-link {
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    color: var(--accent1);
    text-decoration: underline;
}

.angaari-highlight {
    color: var(--accent1);
    font-weight: 700;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .register-content {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 32px;
    }

    .hero {
        text-align: center;
        padding: 0;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .register-main-wrapper {
        padding: 40px 15px 30px;
    }

    .register-card {
        padding: 24px;
    }

    .form-row,
    .password-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .password-match-error {
        grid-column: span 1;
        /* Adjust for single column on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-badge {
        text-align: center;
    }
    
    .google-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .google-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        max-width: 18px;
        max-height: 18px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.1s;
}

.fade-in.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star indicator for required fields */
.required::after {
    content: " *";
    color: var(--error);
}

/* Google OAuth Button Styles */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.divider span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.google-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 20px;
    min-height: 48px;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.google-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
}