/* Register Container */
.register-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for depth */
.register-container::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

.register-container::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(50px);
}

.register-box {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1000px;
    /* Ensure enough width for two columns */
    width: 95%;
    /* Responsive width */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-box:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-header h2 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.register-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Two-Column Grid Layout */
.auth-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Weighted columns for register form */
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.auth-column-left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator line */
    padding-right: 3rem;
}

.auth-column-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding-left: 1rem;
    position: sticky;
    top: 2rem;
}

/* Register Form Elements */
.register-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.form-group input:focus+label,
.form-group:focus-within label {
    color: var(--primary-blue-light);
}

.form-group label i {
    margin-right: 0.6rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.form-group:focus-within label i {
    color: var(--primary-blue);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f1f5f9;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Register Button */
.btn-register {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
}

.btn-register:hover::before {
    opacity: 1;
}

.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-register i {
    margin-right: 0.6rem;
}

/* Links */
.register-links {
    text-align: center;
}

.register-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.register-links a:hover {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.register-links a i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-blue-light);
}

.register-links a:hover i {
    color: var(--accent-cyan);
}

/* Divider */
.register-divider {
    text-align: center;
    position: relative;
    margin: 0.5rem 0;
}

.register-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.register-divider span {
    background: transparent;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

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

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

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    backdrop-filter: blur(4px);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    backdrop-filter: blur(4px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    backdrop-filter: blur(4px);
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    backdrop-filter: blur(4px);
}

/* PIN Display */
.pin-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px dashed rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    text-align: center;
    color: #6ee7b7;
    letter-spacing: 0.15em;
    font-family: 'Fira Code', monospace;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1) inset;
    transition: all 0.3s ease;
}

.pin-display:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    transform: scale(1.02);
}

.pin-warning {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #eab308;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pin-warning i {
    color: #eab308;
}

/* Rate Limit Timer */
#rl-seconds {
    font-weight: 700;
    color: var(--accent-yellow);
    font-variant-numeric: tabular-nums;
}

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.password-requirements h6 {
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements h6 i {
    color: var(--primary-blue);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.password-requirements li {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li i {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.5);
    transition: color 0.2s ease;
}

.password-requirements li:hover i {
    color: var(--accent-green);
}

/* Terms and Conditions Checkbox */
.terms-checkbox {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.terms-checkbox:hover {
    background: rgba(30, 41, 59, 0.6);
}

.terms-checkbox label {
    display: flex;
    align-items: start;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.terms-checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-checkbox span {
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--primary-blue-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.4);
}

.terms-checkbox a:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.security-badge i {
    color: var(--accent-green);
    font-size: 0.9rem;
}

.security-badge span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .register-box {
        padding: 2rem 1.5rem;
        max-width: 500px;
        /* Adjust width for mobile */
    }

    .auth-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 2rem;
    }

    .auth-column-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .auth-column-right {
        padding-left: 0;
        position: static;
        /* Remove sticky on mobile */
    }

    .register-header h2 {
        font-size: 1.75rem;
    }

    .btn-register {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .pin-display {
        font-size: 1.5rem;
    }

    .password-requirements ul {
        grid-template-columns: 1fr;
    }

    .logo-display {
        display: none;
    }
}

/* Logo Styles */
.logo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.auth-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
    /* Greenish shadow for register */
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* Footer Actions */
.auth-footer-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    /* Change to row */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-separator {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-link i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-blue-light);
}

.footer-link:hover i {
    color: var(--accent-cyan);
}

.text-muted {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
}