/* Reset and Base Styles */

.ticket-auth-container {
    max-width: 530px;
    width: 100%;
    margin: 60px auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Toggle Buttons */
.auth-toggle {
    display: flex;
    margin-bottom: 16px;
    gap: 0;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: white;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.auth-forms-wrapper {
    position: relative;
    overflow: hidden;
}

.auth-form-container {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form-container.hidden {
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.auth-form-container.slide-out-left {
    animation: slideOutLeft 0.3s ease forwards;
}

.auth-form-container.slide-out-right {
    animation: slideOutRight 0.3s ease forwards;
}

.auth-form-container.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

.auth-form-container.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.auth-title {
    font-size: 26px;
    font-weight: 600;
    color: #111827;
}

/* Form Styles */
.auth-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0f766e;
    background: white;
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Password Wrapper */
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    max-width: 100%;
    padding: 14px 45px 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #111827;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #0d6660;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    background: #dcfce7;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #bbf7d0;
    text-align: center;
    line-height: 1.5;
}
/* Error Message */
.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 25px;
    border: 1px solid #fecaca;
}

/* OTP Styles */
.back-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding-top: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #111827;
}

.auth-form-container {
    position: relative;
    padding-top: 30px;
}

.otp-subtitle {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.otp-box {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s ease;
}

.otp-box:focus {
    outline: none;
    border-color: #0f766e;
    background: white;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Resend Button */
.resend-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #0f766e;
    border: 2px solid #0f766e;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.resend-btn:hover {
    background: #f0fdfa;
}

.resend-btn:active {
    transform: scale(0.98);
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-bottom: 16px;
    margin-top: -8px;
}

.forgot-password-link a {
    color: #0f766e;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: #0d6660;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .ticket-auth-container {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .otp-box {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .otp-box {
    width: 32px;
    height: 32px;
    font-size: 18px;
    }
    
    .otp-inputs {
        gap: 8px;
    }
}