/* Register Page Custom Styles - Genary AI Theme */
/* Matching index.html color scheme and design */

/* ========================================
   Page Layout
   ======================================== */
.register-page {
    position: relative;
    flex-shrink: 0;
    flex: 1 0 0;
    display: block;
}

.register-wrapper {
    min-height: 100vh;
    background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header Styles
   ======================================== */
.register-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #1e293b;
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .header-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 2rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 640px) {
    .header-content {
        height: 5rem;
    }
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(to bottom right, #8b5cf6, #d946ef);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.logo-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

@media (min-width: 640px) {
    .logo-svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.logo-text {
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
}

@media (min-width: 640px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: #cbd5e1;
    transition: color 0.15s ease-in-out;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
}

/* Language Selector */
.lang-container {
    position: relative;
}

.lang-toggle {
    color: #cbd5e1;
    transition: color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.lang-toggle:hover {
    color: white;
}

.lang-toggle:focus {
    outline: none;
}

.lang-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lang-menu {
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    min-width: 160px;
    background-color: #2D2D2D;
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transform-origin: top left;
    z-index: 50;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu-item {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

.lang-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-menu-item:focus {
    outline: none;
}



.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    color: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    padding: 0.625rem 1.5rem;
    background-color: #1e293b;
    color: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #334155;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    color: white;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ========================================
   Main Content
   ======================================== */
.register-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem 5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .register-main {
        padding: 8rem 1rem 8rem;
    }
}

/* Background Gradients */
.bg-gradient-1 {
    position: absolute;
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(139, 92, 246, 0.2);
    border-radius: 9999px;
    filter: blur(64px);
    z-index: -10;
    pointer-events: none;
}

.bg-gradient-2 {
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(217, 70, 239, 0.2);
    border-radius: 9999px;
    filter: blur(64px);
    z-index: -10;
    pointer-events: none;
}

/* ========================================
   Form Container
   ======================================== */
.form-container {
    width: 100%;
    max-width: 28rem;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(1rem);
    animation: fadeInUp 0.7s ease-out forwards;
}

@media (min-width: 640px) {
    .form-container {
        padding: 2rem;
    }
}

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

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #94a3b8;
}

/* ========================================
   Form Styles
   ======================================== */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.form-input::placeholder {
    color: #64748b;
}

/* Input Group (Email + Button) */
.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-flex {
    flex-grow: 1;
}

.btn-code {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    background-color: #1e293b;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.btn-code:hover {
    background-color: #334155;
}

.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input with Icon (Password fields) */
.input-relative {
    position: relative;
}

.input-with-icon {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.password-toggle:hover {
    color: white;
}

.password-toggle:focus {
    outline: none;
}

.countdown-timer {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    display: none;
}

.countdown-timer.active {
    display: block;
}

/* Error Messages */
.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
    margin-top: 0.25rem;
}

.error-message.visible {
    display: block;
}

.error-with-icon {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.error-with-icon.visible {
    display: flex;
}

/* ========================================
   Submit Button
   ======================================== */
.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.25);
}

/* ========================================
   Divider
   ======================================== */
.divider-container {
    position: relative;
    margin: 1.5rem 0;
}

.divider-line-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.divider-line {
    width: 100%;
    border-top: 1px solid #1e293b;
}

.divider-text-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 0.875rem;
}

.divider-text {
    padding: 0 0.5rem;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(40px);
    color: #94a3b8;
}

/* ========================================
   Google Button
   ======================================== */
.btn-google {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google:hover {
    background-color: #1e293b;
}

.google-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   Login Link
   ======================================== */
.login-link {
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 1.5rem;
}

.link-primary {
    color: #a78bfa;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.link-primary:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(40px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 2rem;
    height: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.mobile-nav-link:hover {
    color: white;
}

.mobile-divider {
    height: 1px;
    background-color: #1e293b;
    width: 100%;
    margin: 0.5rem 0;
}

.mobile-lang-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-lang-title {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mobile-lang-link {
    font-size: 1.125rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.mobile-lang-link:hover {
    color: white;
}

.mobile-btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    color: white;
    text-align: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.mobile-btn-secondary {
    width: 100%;
    padding: 1rem;
    background-color: #1e293b;
    color: white;
    text-align: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 639px) {
    .form-title {
        font-size: 1.5rem;
    }

    .form-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* ========================================
   Footer Styles
   ======================================== */
.login-footer {
    border-top: 1px solid #1e293b;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .login-footer {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .login-footer {
        padding: 3rem 2rem;
    }
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .footer-brand {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    color: white;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1e293b;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease-in-out;
    text-decoration: none;
}

.social-link:hover {
    background-color: #334155;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #cbd5e1;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #94a3b8;
}