    
    * {

        box-sizing: border-box;

    }
    .auth-page {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: var(--bg-secondary);
    }
    
    .auth-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 2rem;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }
    
    .auth-logo {
        margin-bottom: 2rem;
    }
    
    .logo-icon-large {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 800;
        font-size: 1.75rem;
        box-shadow: var(--shadow-lg);
    }
    
    .auth-header {
        text-align: center;
        margin-bottom: 2.5rem;
        width: 100%;
    }
    
    .auth-header h1 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
        color: var(--text);
    }
    
    .auth-form {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text);
    }
    
    .input-group {
        position: relative;
    }
    
    .form-input {
        width: 100%;
        padding: 0.875rem 1rem;
        border: 2px solid var(--border);
        border-radius: var(--radius-sm);
        font-size: 0.9375rem;
        transition: var(--transition);
        background: var(--bg);
        color: var(--text);
    }
    
    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        border-radius: var(--radius-sm);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        border: none;
        transition: var(--transition);
        display: inline-block;
        text-align: center;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn-full {
        width: 100%;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-hint {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.8125rem;
        color: var(--text-light);
    }
    
    .form-footer {
        text-align: center;
        margin-top: 1rem;
    }
    
    .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .category-option {
        cursor: pointer;
    }
    
    .category-option input[type="radio"] {
        display: none;
    }
    
    .category-card {
        padding: 1rem 0.5rem;
        border: 2px solid var(--border);
        border-radius: var(--radius-sm);
        text-align: center;
        transition: var(--transition);
        background: var(--bg);
    }
    
    .category-option input:checked + .category-card {
        border-color: var(--primary);
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }
    
    .category-card:hover {
        border-color: var(--primary-light);
        transform: translateY(-2px);
    }
    
    .category-emoji {
        display: block;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .category-name {
        display: block;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text);
    }
    
    .input-prefix-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        pointer-events: none;
    }
    
    .input-suffix-icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .input-suffix-icon:hover {
        color: var(--primary);
    }
    
    .form-input.with-prefix {
        padding-left: 3rem;
    }
    
    .form-input.with-suffix {
        padding-right: 3rem;
    }
    
    .alert {
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.9375rem;
        font-weight: 500;
    }
    
    .alert svg {
        flex-shrink: 0;
        margin-top: 0.125rem;
    }
    
    .alert-error {
        background: #FEF2F2;
        border: 1px solid #FCA5A5;
        color: #DC2626;
    }
    
    [data-theme="dark"] .alert-error {
        background: rgba(220, 38, 38, 0.1);
        border-color: rgba(220, 38, 38, 0.3);
        color: #FCA5A5;
    }
    
    .auth-divider {
        position: relative;
        text-align: center;
        margin: 1.5rem 0;
        width: 100%;
    }
    
    .auth-divider::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: var(--border);
    }
    
    .auth-divider span {
        background: var(--bg-secondary);
        padding: 0 1rem;
        position: relative;
        color: var(--text-light);
        font-size: 0.875rem;
    }
    
    .auth-footer {
        text-align: center;
        color: var(--text-light);
        font-size: 0.9375rem;
        width: 100%;
    }
    
    .auth-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }
    
    .auth-footer a:hover {
        color: var(--primary-dark);
    }
    
    /* Right Side */
    .auth-side {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .auth-side::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }
    
    .features-showcase {
        max-width: 500px;
        position: relative;
        z-index: 1;
    }
    
    .features-showcase h2 {
        color: white;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 2rem;
    }
    
    .feature-list {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-item {
        display: flex;
        gap: 1rem;
        color: white;
    }
    
    .feature-check {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        flex-shrink: 0;
    }
    
    .feature-item h4 {
        font-size: 1.0625rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }
    
    .feature-item p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    /* Prevent zoom on mobile inputs */

@media (max-width: 768px) {

    /* Prevent iOS from zooming on input focus */

    input[type="text"],

    input[type="email"],

    input[type="tel"],

    input[type="password"],

    select,

    textarea {

        font-size: 16px !important; /* iOS won't zoom if font-size is 16px or larger */

    }

    

    .form-input {

        font-size: 16px !important;

    }

}

/* Fix margins and padding on mobile */

@media (max-width: 1024px) {

    .auth-page {

        grid-template-columns: 1fr;

    }

    

    .auth-side {

        display: none;

    }

    

    /* Remove side margins/padding that cause horizontal scroll */

    .auth-container {

        padding: 2rem 1rem;

        max-width: 100%;

        box-sizing: border-box;

    }

    

    .auth-form {

        width: 100%;

        box-sizing: border-box;

    }

    

    .form-group {

        width: 100%;

        box-sizing: border-box;

    }

}

@media (max-width: 640px) {

    .category-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 0.5rem;

    }

    

    .auth-container {

        padding: 2rem 1rem;

    }

    

    .auth-header h1 {

        font-size: 1.5rem;

        line-height: 1.2;

    }

    

    .auth-header {

        margin-bottom: 1.5rem;

    }

    

    /* Make category cards smaller on mobile */

    .category-card {

        padding: 0.75rem 0.25rem;

    }

    

    .category-emoji {

        font-size: 1.5rem;

        margin-bottom: 0.25rem;

    }

    

    .category-name {

        font-size: 0.75rem;

    }

    

    /* Adjust button size */

    .btn-lg {

        padding: 0.875rem 1.25rem;

        font-size: 0.9375rem;

    }

}

@media (max-width: 480px) {

    .category-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 0.5rem;

    }

    

    .auth-container {

        padding: 1.5rem 1rem;

    }

    

    .auth-header h1 {

        font-size: 1.375rem;

    }

    

    .logo-icon-large {

        width: 48px;

        height: 48px;

        font-size: 1.5rem;

    }

}

/* Ensure no element causes horizontal scroll */


.auth-page,

.auth-container,

.auth-form,

.form-group,

.input-group {

    max-width: 100%;

    overflow-x: hidden;

}