/* =============================================================
   [LOGIN] Login Page - Premium Design
   Integrated with PastQ Hub design system
   ============================================================= */

/* Full-page gradient background */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-purple-gradient, linear-gradient(160deg, #f8f6ff 0%, #ede9fe 40%, #e0e7ff 100%));
    /* Token 2 gradient */
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative circles */
.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.login-logo img {
    width: 36px;
    height: 36px;
}

.login-logo span {
    font-family: 'Chela One', cursive;
    font-size: 1.5rem;
    color: #5D38DE;
    font-weight: 400;
}

/* Heading */
.login-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-heading h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.login-heading h1 span {
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-heading p {
    font-size: 0.88rem;
    color: #888;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.form-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: #f0effa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
    outline: none;
}

.form-group .input-wrapper input::placeholder {
    color: #b0b0c8;
}

.form-group .input-wrapper input:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group .input-wrapper input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Forgot password link */
.forgot-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    text-align: right;
    margin-top: -0.5rem;
    transition: color 0.2s;
    align-self: flex-end;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Submit button */
.login-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.25rem;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.35);
}

.login-submit:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
}

/* Footer link */
.login-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #888;
}

.login-footer a {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .login-heading h1 {
        font-size: 1.35rem;
    }

    .form-group .input-wrapper input {
        padding: 11px 40px 11px 14px;
        font-size: 0.85rem;
    }

    .login-submit {
        padding: 12px;
        font-size: 0.92rem;
    }
}
