/* ========================================
   TIPZ - Auth Pages Styles
   Shared styles for login, register, reset password
   ======================================== */

/* Auth Container - Full Height with Gradient Background + Football Pattern */
.auth-container {
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #00A859 100%);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Patrón de líneas de campo de fútbol */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 168, 89, 0.03) 50px,
            rgba(0, 168, 89, 0.03) 100px
        );
    pointer-events: none;
    z-index: 1;
}

/* Círculo central decorativo (like football field) */
.auth-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid rgba(0, 168, 89, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Auth Card - White Card with Shadow + Football Ball Decoration */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 10;  /* Above patterns */
}

/* Decorative subtle glow */
.auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00A859, transparent);
    border-radius: 20px 20px 0 0;
    z-index: 11;
    pointer-events: none;
}

/* Auth Header - Dark Secure Header */
.auth-header {
    background: linear-gradient(135deg, #0a1628 0%, #132743 50%, #0d3320 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 89, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 168, 89, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.auth-header-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A859 0%, #007A42 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.3), 0 0 0 4px rgba(0, 168, 89, 0.1);
    position: relative;
    z-index: 1;
}

.auth-header-icon i {
    font-size: 2rem;
    color: white;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.auth-header p {
    opacity: 0.7;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.auth-header-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.auth-header-badges span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-header-badges span i {
    font-size: 0.65rem;
    color: #00A859;
    opacity: 1;
}

/* Auth Body - Form Container */
.auth-body {
    padding: 2.5rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #00A859;
    box-shadow:
        0 0 0 0.2rem rgba(0, 168, 89, 0.15),
        0 0 20px rgba(0, 168, 89, 0.3);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Primary Button with Football Shot Effect */
.btn-auth-primary {
    background: linear-gradient(135deg, #00A859 0%, #007A42 100%);
    color: white;
    padding: 0.875rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.4);
    color: white;
}

.btn-auth-primary:active {
    transform: translateY(0);
}

/* Warning/Success Buttons */
.btn-auth-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 0.875rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-auth-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    color: white;
}

.btn-auth-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.875rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-auth-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Links */
.auth-link {
    color: #00A859;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #007A42;
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    border-top: 2px solid #f0f0f0;
    margin: 2rem 0;
}

.auth-divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}

.auth-divider-text::before,
.auth-divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider-text span {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Google OAuth Button - Professional Style */
.btn-google-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    background: #ffffff;
    color: #3c4043;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-google-oauth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66,133,244,0.04), rgba(234,67,53,0.04), rgba(251,188,5,0.04), rgba(52,168,83,0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-google-oauth:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    color: #1a1a1a;
    text-decoration: none;
}

.btn-google-oauth:hover::before {
    opacity: 1;
}

.btn-google-oauth:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.btn-google-oauth .google-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-google-oauth .google-text {
    position: relative;
    z-index: 1;
}

/* Guild Link Card */
.guild-link-card {
    margin-top: 1.5rem;
}

.guild-link-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 185, 11, 0.15);
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.04) 0%, rgba(240, 185, 11, 0.08) 100%);
    text-decoration: none;
    transition: all 0.3s ease;
}

.guild-link-inner:hover {
    border-color: rgba(240, 185, 11, 0.35);
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(240, 185, 11, 0.14) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.1);
    text-decoration: none;
}

.guild-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0b90b 0%, #d4a00a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guild-link-icon i {
    font-size: 1rem;
    color: white;
}

.guild-link-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guild-link-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f0b90b;
    line-height: 1.2;
}

.guild-link-subtitle {
    font-size: 0.7rem;
    color: #999;
    line-height: 1.2;
}

.guild-link-arrow {
    color: #f0b90b;
    opacity: 0.5;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.guild-link-inner:hover .guild-link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Badges and Info Boxes */
.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0faf5 0%, #e8f5ef 100%);
    border: 1px solid rgba(0, 168, 89, 0.15);
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-top: 1.25rem;
}

.security-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A859 0%, #007A42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-badge-icon i {
    font-size: 1rem;
    color: white;
}

.security-badge-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.security-badge-text strong {
    font-size: 0.8rem;
    color: #007A42;
}

.security-badge-text span {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.3;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: linear-gradient(135deg, rgba(0,168,89,0.06) 0%, rgba(0,122,66,0.04) 100%);
    border: 1px solid rgba(0,168,89,0.2);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.info-badge-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A859, #007A42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,168,89,0.3);
}

.info-badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.info-badge-content strong {
    font-size: 0.82rem;
    color: #00A859;
}

.info-badge-content span {
    font-size: 0.73rem;
    color: #888;
}

.warning-badge {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    padding-left: 3rem;
    border-radius: 8px;
    margin-top: 1rem;
    position: relative;
}

.warning-badge::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #ffc107;
    border-radius: 2px;
}

/* Checkbox */
.form-check-input:checked {
    background-color: #00A859;
    border-color: #00A859;
}

.form-check-input:focus {
    border-color: #00A859;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 89, 0.15);
}

/* Features Row (for register page) - Football Field Style */
.features-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

/* Línea de campo decorativa */
.feature-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--tipz-green-primary) 50%,
        transparent 100%
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--tipz-green-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow:
        0 10px 30px rgba(0, 168, 89, 0.2),
        0 0 0 4px rgba(0, 168, 89, 0.1);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Password Requirements Card */
.password-requirements {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #00A859;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.password-requirements li {
    padding: 0.25rem 0;
}

.password-requirements li::before {
    content: "✓";
    color: #00A859;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateBall {
    from { transform: rotate(-15deg); }
    to { transform: rotate(345deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container { padding: 2rem 0 1rem; }
    .auth-container::after { width: 300px; height: 300px; }
    .auth-header h1 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .auth-container::after { width: 200px; height: 200px; }
    .otp-input { max-width: 100%; font-size: 1.2rem; letter-spacing: 4px; }
    .auth-card {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-header i {
        font-size: 3rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .features-row {
        flex-direction: column;
    }

    .btn-auth-primary,
    .btn-auth-warning,
    .btn-auth-success {
        font-size: 0.9rem;
    }
}

/* OTP Input */
.otp-input {
    letter-spacing: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 280px;
    margin: 0 auto;
}
