/* ==========================================================================
   Relay For Life Rossendale - Superior Version 3.0.0 Auth Styles
   ========================================================================== */

.v3-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--colour-bg-page);
    position: relative;
    overflow: hidden;
}

.v3-auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 3rem;
    position: relative;
    z-index: 10;
}

.v3-auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.v3-auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.v3-auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--colour-primary-dark);
}

.v3-auth-subtitle {
    color: var(--colour-text-muted);
    font-size: 1.1rem;
}

/* FORM ELEMENTS */
.v3-input-group {
    margin-bottom: 1.5rem;
}

.v3-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--colour-primary-dark);
}

.v3-input-wrapper {
    position: relative;
}

.v3-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: all 0.3s ease;
}

.v3-input:focus {
    outline: none;
    background: white;
    border-color: var(--colour-primary);
    box-shadow: 0 0 0 4px rgba(46, 0, 139, 0.1);
}

.v3-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--colour-primary);
    opacity: 0.6;
}

.v3-input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--colour-text-muted);
    cursor: pointer;
}

/* SOCIAL AUTH */
.v3-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v3-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--colour-text-main);
}

.v3-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
    border-color: var(--colour-primary);
}

.v3-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--colour-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.v3-divider::before, .v3-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.v3-divider:not(:empty)::before { margin-right: 1rem; }
.v3-divider:not(:empty)::after { margin-left: 1rem; }

/* STEPPER */
.v3-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.v3-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.v3-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.v3-step-circle {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.v3-step.active .v3-step-circle {
    background: var(--colour-primary);
    border-color: var(--colour-primary);
    color: white;
    box-shadow: 0 0 0 5px rgba(46, 0, 139, 0.1);
}

.v3-step.completed .v3-step-circle {
    background: var(--colour-success);
    border-color: var(--colour-success);
    color: white;
}

.v3-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--colour-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* STRENGTH METER */
.v3-strength {
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.v3-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
}

.v3-strength-bar.weak { background: var(--colour-error); width: 33%; }
.v3-strength-bar.fair { background: var(--colour-warning); width: 66%; }
.v3-strength-bar.strong { background: var(--colour-success); width: 100%; }

/* ANIMATIONS */
.v3-auth-animate {
    animation: auth-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
