/* =============================================================================
   MESSYAI SIMPLIFIED SIGNUP FORM STYLES
   Inspired by Claude's minimalist approach with MessyAI's fabulous personality
   ============================================================================= */

/* =============================================================================
   BASE STYLES
   ============================================================================= */

.signup-container {
    min-height: 100vh;
    background: linear-gradient(180deg,
            var(--messy-slate) 0%,
            var(--messy-midnight) 50%,
            var(--messy-darkpurple) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Add spacing from floating navbar when active */
body.floating-navbar-active .signup-container {
    padding-top: 120px;
}

/* Background visual effects */
.signup-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 20%, rgba(126, 87, 194, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(240, 98, 146, 0.15) 0%, transparent 50%);
    animation: floatBackground 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBackground {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

/* =============================================================================
   SIGNUP CARD
   ============================================================================= */

.signup-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(126, 87, 194, 0.15);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: cardEntrance 0.6s ease-out;
}

.signup-card:hover {
    border-color: rgba(126, 87, 194, 0.25);
    box-shadow: 0 12px 40px rgba(126, 87, 194, 0.25);
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================================================
   CARD HEADER
   ============================================================================= */

.signup-header {
    background: rgba(126, 87, 194, 0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 87, 194, 0.15);
    padding: 2.5rem 2rem;
    text-align: center;
}

.signup-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--messy-violet) 0%, var(--messy-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.signup-subtitle {
    font-size: 0.95rem;
    color: var(--messy-lavender);
    margin: 0;
    opacity: 0.9;
}

/* =============================================================================
   CARD BODY & FORM STYLES
   ============================================================================= */

.signup-body {
    padding: 2.5rem 2rem;
}

.simple-signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-label {
    color: var(--messy-lavender);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.form-text {
    font-size: 0.825rem;
    color: rgba(229, 222, 255, 0.6);
    margin-top: 0.375rem;
    font-style: italic;
}

/* =============================================================================
   FORM CONTROLS - CLAUDE-INSPIRED MINIMALISM
   ============================================================================= */

.form-control {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(126, 87, 194, 0.25);
    border-radius: 10px;
    color: var(--color-foreground);
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    width: 100%;
    min-height: 50px;
    font-weight: 450;
}

.form-control:hover {
    border-color: rgba(126, 87, 194, 0.4);
    background: rgba(126, 87, 194, 0.06);
}

.form-control:focus {
    background: rgba(126, 87, 194, 0.08);
    border-color: var(--messy-violet);
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.15);
    outline: none;
    color: var(--color-foreground);
}

.form-control::placeholder {
    color: rgba(229, 222, 255, 0.45);
    font-weight: 400;
}

/* =============================================================================
   CHECKBOX STYLES - MESSYAI STYLE
   ============================================================================= */

.checkbox-group {
    margin-top: 0.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(126, 87, 194, 0.25);
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.form-check:hover {
    background: rgba(126, 87, 194, 0.08);
    border-color: rgba(126, 87, 194, 0.4);
}

.form-check:has(input:checked) {
    background: rgba(126, 87, 194, 0.12);
    border-color: var(--messy-violet);
    box-shadow: 0 0 0 1px rgba(126, 87, 194, 0.2);
}

.form-check .form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(126, 87, 194, 0.4);
    transition: all 0.25s ease;
    margin: 0.125rem 0 0 0 !important;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.form-check .form-check-input:checked {
    background-color: var(--messy-violet);
    border-color: var(--messy-violet);
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.25);
}

.form-check .form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.form-check .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

.form-check-label {
    color: var(--color-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
    font-weight: 450;
    margin: 0;
    padding: 0;
}

/* =============================================================================
   SUBMIT BUTTON
   ============================================================================= */

.btn-signup {
    background: linear-gradient(135deg, var(--messy-violet) 0%, var(--messy-pink) 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(126, 87, 194, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 87, 194, 0.4);
}

.btn-signup:hover::before {
    left: 100%;
}

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

.btn-signup:focus {
    outline: 2px solid var(--messy-violet);
    outline-offset: 3px;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.signup-footer {
    text-align: center;
    padding: 1.75rem 2rem;
    border-top: 1px solid rgba(126, 87, 194, 0.15);
    background: rgba(126, 87, 194, 0.03);
}

.signup-footer-text {
    font-size: 0.875rem;
    color: rgba(229, 222, 255, 0.7);
    margin: 0;
}

.login-link {
    color: var(--messy-violet);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--messy-pink);
    text-decoration: underline;
}

/* =============================================================================
   ALERT MESSAGES
   ============================================================================= */

.signup-alert {
    background: rgba(126, 87, 194, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 87, 194, 0.25);
    border-radius: 10px;
    color: var(--messy-lavender);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
    text-align: center;
    line-height: 1.5;
}

.signup-alert.alert-success {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.25);
    color: #2ecc71;
}

.signup-alert.alert-warning {
    background: rgba(241, 196, 15, 0.12);
    border-color: rgba(241, 196, 15, 0.25);
    color: #f1c40f;
}

.signup-alert.alert-error {
    background: rgba(240, 98, 146, 0.12);
    border-color: rgba(240, 98, 146, 0.25);
    color: var(--messy-pink);
}

/* =============================================================================
   ERROR MESSAGES
   ============================================================================= */

.invalid-feedback {
    color: var(--messy-pink);
    font-size: 0.825rem;
    margin-top: 0.375rem;
    display: block;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: rgba(240, 98, 146, 0.5);
}

.form-control.is-invalid:focus {
    border-color: var(--messy-pink);
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.2);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 640px) {
    .signup-container {
        padding: 1.5rem 0.75rem;
    }

    .signup-card {
        max-width: 100%;
        border-radius: 16px;
    }

    .signup-header {
        padding: 2rem 1.5rem;
    }

    .signup-body {
        padding: 2rem 1.5rem;
    }

    .signup-title {
        font-size: 1.75rem;
    }

    .signup-subtitle {
        font-size: 0.875rem;
    }

    .simple-signup-form {
        gap: 1.5rem;
    }

    .form-control {
        padding: 0.75rem 1rem;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .form-check {
        padding: 1rem;
    }

    .form-check-label {
        font-size: 0.875rem;
    }

    .btn-signup {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .signup-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 450px) {
    .signup-header {
        padding: 1.75rem 1.25rem;
    }

    .signup-body {
        padding: 1.75rem 1.25rem;
    }

    .signup-title {
        font-size: 1.5rem;
    }

    .simple-signup-form {
        gap: 1.25rem;
    }

    .form-check {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .form-check-input {
        width: 18px;
        height: 18px;
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

.btn-signup:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--messy-violet);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .signup-card {
        border-width: 2px;
    }

    .form-control {
        border-width: 2px;
    }

    .form-check {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}