/* NEXTSET - AUTHENTICATION */

/* === AUTH PAGE LAYOUT === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 2rem 1rem;
}

/* === LOGO SECTION === */
.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}
.auth-logo img {
    width: auto;
    height: 100px;
    transition: transform 0.3s ease;
}
.auth-logo a:hover img {
    transform: scale(1.05);
}

/* === MAIN FORM BOX === */
.auth-box {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 6px solid var(--primary);
}
.auth-box h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* === MESSAGES === */
.error-message,
.success-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.error-message {
    background-color: #ffebee;
    color: #c62828;
}
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* === FORM ELEMENTS === */
form {
    width: 100%;
}
/* input row */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
}
.input-group input,
.input-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--black);
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: none;
}
.input-group input::placeholder {
    color: #aaa;
}
.input-group small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

/* === PHONE INPUT WITH COUNTRY CODE === */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}
.phone-country-select {
    width: 85px !important;
    flex-shrink: 0;
    padding-right: 1.8rem !important;
    text-align: center;
}
.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* === PASSWORD TOGGLE === */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 45px;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.password-toggle:hover {
    color: var(--gray);
    background: none;
}

/* === CITY INFO === */
.city-info {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}
.city-info.has-coach {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}
.city-info.no-coach {
    background-color: #fff3e0;
    color: #e65100;
    border-left: 4px solid var(--primary);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SUBMIT BUTTON === */
.auth-btn {
    width: 100%;
    border: none;
    padding: 1rem;
    background: var(--primary);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-btn:hover {
    transform: translateY(-3px);
    background: var(--secondary);
}
.auth-btn:active {
    transform: translateY(-1px);
}

/* === LINKS SECTION === */
.auth-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
.auth-links p {
    color: var(--gray);
    font-size: 0.95rem;
}
.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.auth-links a:hover {
    color: var(--secondary);
}

/* === FOOTER BACK LINK === */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.3s ease;
}
.back-link .back-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.back-link .back-text {
    display: inline-block;
    transition: transform 0.3s ease;
}
.back-link:hover {
    color: var(--primary);
}
.back-link:hover .back-arrow {
    transform: translateX(-4px);
}
.back-link:hover .back-text {
    transform: translateX(4px);
}

/* === VERIFICATION PAGE === */
.email-display {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--gray);
}
.email-display strong {
    color: var(--black);
    font-weight: 600;
}
/* code inputs */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--white);
    transition: border-color 0.2s ease;
}
.code-digit:focus {
    outline: none;
    border-color: var(--primary);
}
.code-digit:not(:placeholder-shown) {
    border-color: var(--primary);
}
/* timer */
.timer-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}
.timer-box.warning .timer-text,
.timer-box.warning .timer-countdown {
    color: #c62828;
}
.timer-text {
    font-size: 0.9rem;
    color: var(--gray);
}
.timer-countdown {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--black);
    font-family: inherit;
}
/* resend */
.resend-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
.resend-section p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.resend-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.resend-link:hover {
    color: var(--primary);
}
.start-over-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.start-over-link:hover {
    color: var(--primary);
}

/* === RESPONSIVENESS === */
@media screen and (min-width: 425px) {
    .auth-container {
        max-width: 480px;
    }
}
@media screen and (min-width: 769px) {
    .auth-container {
        max-width: 520px;
    }
    .auth-box {
        padding: 3rem 2.5rem;
    }
}

/* === CLUB WELCOME BANNER === */
.club-welcome-banner {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    color: white;
}
.club-welcome-banner h2 {
    color: white;
    margin-bottom: 0.25rem;
}
.club-welcome-banner .auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* === PROMO BANNER === */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.promo-icon {
    font-size: 1.2rem;
}

/* === ROLE SELECTION PAGE === */
.role-selection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.role-container {
    max-width: 1100px;
    width: 100%;
}
.role-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.role-header img {
    height: 60px;
    margin-bottom: 1.5rem;
}
.role-header h1 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}
.role-header p {
    color: var(--gray);
    font-size: 1.1rem;
}
.role-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .role-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
.role-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 3px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.role-card.player:hover {
    border-color: var(--primary);
}
.role-card.coach:hover {
    border-color: #8b5cf6;
}
.role-card.academy:hover {
    border-color: var(--info);
}
.role-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.role-card.player .role-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #e69500 100%);
}
.role-card.coach .role-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.role-card.academy .role-icon {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
}
.role-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}
.role-card h2 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}
.role-card .role-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
}
.role-features {
    text-align: left;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}
.role-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
    padding: 0.4rem 0;
}
.role-card.player .role-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}
.role-card.coach .role-features li::before {
    content: "✓";
    color: #8b5cf6;
    font-weight: bold;
}
.role-card.academy .role-features li::before {
    content: "✓";
    color: var(--info);
    font-weight: bold;
}
.role-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.role-card.player .role-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #e69500 100%);
}
.role-card.coach .role-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.role-card.academy .role-btn {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
}
.role-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.role-pricing {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
}
.role-pricing strong {
    color: var(--black);
}

/* Role selection page auth-links (no border) */
.role-selection .auth-links {
    text-align: left;
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
}
.role-selection .auth-links p {
    color: var(--gray);
    font-size: 0.95rem;
}
.role-selection .auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.role-selection .auth-links a:hover {
    color: var(--secondary);
}

/* Role selection back link */
.role-selection .back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.5rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0;
    border-radius: 0;
}
.role-selection .back-link:hover {
    color: var(--primary);
}
.role-selection .back-link:hover .back-arrow {
    transform: translateX(-4px);
}
.role-selection .back-link:hover .back-text {
    transform: translateX(4px);
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
