/* =============================================================
   [SIGNUP] Sign Up Page - Premium Design
   Matches the login page design system
   ============================================================= */

/* Full-page gradient background (same as login) */
.signup-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 */
.signup-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;
}

.signup-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;
}

/* Sign Up Card */
.signup-card {
    width: 100%;
    max-width: 460px;
    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 */
.signup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

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

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

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

.signup-heading h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

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

.signup-heading p {
    font-size: 0.85rem;
    color: #888;
    margin: 0.4rem 0 0;
    line-height: 1.5;
}

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

/* Name row — first + last name side by side */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 400px) {
    .name-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

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

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

.form-group .input-wrapper input {
    width: 100%;
    padding: 11px 44px 11px 14px;
    background: #f0effa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    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;
}

/* Validation error messages */
.validation-error {
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 2px;
    display: none;
    line-height: 1.4;
}

.validation-error.show {
    display: block;
}

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

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

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

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

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

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

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

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

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

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

    .signup-heading h1 {
        font-size: 1.2rem;
    }

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

    .signup-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
}
