/* ================================================
   T-Store — Auth Pages Stylesheet
   ================================================ */

/* ---- Auth Body ---- */
.ts-auth-body {
    min-height: 100vh;
    background: var(--ts-dark);
    overflow-x: hidden;
}

/* ---- Auth Wrapper ---- */
.ts-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* ---- Decorative Background ---- */
.ts-auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.ts-auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.ts-auth-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--ts-primary);
    top: -15%;
    right: -10%;
    animation: authFloat 12s ease-in-out infinite;
}

.ts-auth-shape-2 {
    width: 400px;
    height: 400px;
    background: #a3cc7a; /* Lighter Green */
    bottom: -10%;
    left: -10%;
    animation: authFloat 15s ease-in-out infinite reverse;
}

.ts-auth-shape-3 {
    width: 300px;
    height: 300px;
    background: #dfe9d6; /* Very Light Green */
    top: 40%;
    left: 30%;
    animation: authFloat 10s ease-in-out infinite 2s;
}

@keyframes authFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Auth Container ---- */
.ts-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Auth Card ---- */
.ts-auth-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--ts-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: authCardIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-auth-card-wide {
    max-width: 620px;
}

.ts-auth-container:has(.ts-auth-card-wide) {
    max-width: 620px;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---- Auth Header ---- */
.ts-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ts-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ts-primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--ts-transition);
}

.ts-auth-logo:hover {
    color: var(--ts-primary-dark);
    transform: scale(1.02);
}

.ts-auth-logo i {
    font-size: 1.8rem;
}

.ts-auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ts-dark);
    margin-bottom: 0.5rem;
}

.ts-auth-header p {
    color: var(--ts-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---- OTP Icon ---- */
.ts-otp-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--ts-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* ---- Email Display ---- */
.ts-email-display {
    direction: ltr;
    background: var(--ts-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--ts-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ts-primary);
    display: inline-block;
    margin-top: 0.75rem;
}

/* ---- Auth Form ---- */
.ts-auth-card .ts-form-group {
    margin-bottom: 1.25rem;
}

.ts-auth-card .ts-form-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    display: block;
    color: var(--ts-dark-2);
}

.ts-auth-card .ts-form-input {
    border: 1.5px solid var(--ts-gray-light);
    border-radius: var(--ts-radius-sm);
    padding: 0.7rem 1rem;
    font-family: var(--ts-font);
    font-size: 0.95rem;
    transition: var(--ts-transition);
    background: var(--ts-bg);
}

.ts-auth-card .ts-form-input:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 4px var(--ts-primary-glow);
    background: #fff;
}

/* ---- Password Toggle ---- */
.ts-password-wrapper {
    position: relative;
}

.ts-password-toggle {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ts-gray);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: var(--ts-transition);
}

.ts-password-toggle:hover {
    color: var(--ts-primary);
}

/* ---- OTP Inputs ---- */
.ts-otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    direction: ltr;
}

.ts-otp-digit {
    width: 52px;
    height: 60px;
    border: 2px solid var(--ts-gray-light);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--ts-dark);
    background: var(--ts-bg);
    transition: var(--ts-transition);
    outline: none;
}

.ts-otp-digit:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 4px var(--ts-primary-glow);
    background: #fff;
}

/* ---- Auth Error ---- */
.ts-auth-error {
    color: var(--ts-rose);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.ts-auth-error:empty,
.ts-auth-error.validation-summary-valid {
    display: none;
}

.ts-auth-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(244, 63, 94, 0.06);
    border-radius: var(--ts-radius-sm);
    padding: 0.75rem 1rem;
    border-right: 3px solid var(--ts-rose);
}

.ts-auth-error ul li {
    padding: 0.2rem 0;
}

/* ---- Auth Footer ---- */
.ts-auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ts-gray-light);
}

.ts-auth-footer p {
    color: var(--ts-gray);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ts-auth-link {
    color: var(--ts-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ts-transition);
}

.ts-auth-link:hover {
    color: var(--ts-primary-dark);
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .ts-auth-wrapper {
        padding: 1rem;
    }

    .ts-auth-card {
        padding: 1.75rem;
    }

    .ts-auth-header h2 {
        font-size: 1.3rem;
    }

    .ts-otp-digit {
        width: 44px;
        height: 52px;
        font-size: 1.2rem;
    }

    .ts-otp-inputs {
        gap: 0.5rem;
    }
}
