/* Register Page Styles - Matches Login.css design language */

/* Full page hero background */
.register-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a472a 0%, #0d2818 40%, #1a3a2a 70%, #0f3d1f 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated background elements */
.register-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.register-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(115,236,139,0.15) 0%, rgba(55,159,0,0.08) 100%);
}

.register-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation: regFloatSlow 15s ease-in-out infinite;
}

.register-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    animation: regFloatSlow 12s ease-in-out infinite reverse;
}

.register-circle-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 10%;
    background: linear-gradient(135deg, rgba(115,236,139,0.1) 0%, rgba(55,159,0,0.05) 100%);
    animation: regFloatSlow 18s ease-in-out infinite;
}

.register-circle-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    animation: regFloatSlow 10s ease-in-out infinite reverse;
}

/* Football field pattern overlay */
.register-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(115,236,139,0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.03) 0%, transparent 30%),
        linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,0.015) 49.8%, rgba(255,255,255,0.015) 50.2%, transparent 50.2%),
        linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,0.015) 49.8%, rgba(255,255,255,0.015) 50.2%, transparent 50.2%);
    background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
}

/* Floating football icon */
.register-football-icon {
    position: absolute;
    right: 8%;
    top: 15%;
    width: 200px;
    height: 200px;
    opacity: 0.15;
    animation: regSpinSlow 40s linear infinite;
}

.register-trophy-icon {
    position: absolute;
    left: 5%;
    bottom: 10%;
    width: 100px;
    height: 100px;
    opacity: 0.12;
    animation: regBounce 4s ease-in-out infinite;
}

@keyframes regFloatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes regSpinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes regBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Main container */
.register-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    margin: 20px;
    position: relative;
    z-index: 1;
}

/* Left side - Features */
.register-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: #fff;
    animation: regSlideRight 0.8s ease-out;
}

.register-brand {
    margin-bottom: 40px;
}

.register-brand img {
    height: 80px;
}

.register-tagline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #73EC8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 400px;
}

.register-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.register-feature-item:last-child {
    border-bottom: none;
}

.register-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(115,236,139,0.3) 0%, rgba(55,159,0,0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.register-feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #fff;
}

.register-feature-text p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255,255,255,0.6);
}

/* Right side - Register card */
.register-card-wrapper {
    flex: 0 0 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-card {
    width: 100%;
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    max-height: 90vh;
    overflow-y: auto;
    animation: regSlideUp 0.8s ease-out;
}

.register-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.register-card-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 15px;
}

.register-card-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.register-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a472a;
    margin: 0 0 6px 0;
}

.register-card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Form styles */
.register-form .form-group {
    margin-bottom: 18px;
}

.register-form .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.register-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.register-form .form-control:focus {
    border-color: #73EC8B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(115,236,139,0.15);
    outline: none;
}

.register-form .form-control::placeholder {
    color: #aaa;
}

/* Input groups with icons */
.register-form .input-group {
    display: flex;
}

.register-form .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #6c757d;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.register-form .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.register-form .input-group .form-control:focus {
    border-left: none;
}

.register-form .input-group:focus-within .input-group-text {
    border-color: #73EC8B;
    background: #fff;
}

.register-form .input-group:focus-within .form-control {
    border-color: #73EC8B;
}

/* Toggle password button */
.register-form .toggle-password {
    border: 2px solid #e8e8e8;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #f8f9fa;
    color: #888;
    padding: 0 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.register-form .toggle-password:hover {
    background: #e9ecef;
    color: #1a472a;
}

.register-form .input-group:focus-within .toggle-password {
    border-color: #73EC8B;
}

/* Password with icon + toggle: middle input has no left/right border-radius */
.register-form .input-group .form-control.password-with-icon {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.register-form .input-group .form-control.password-with-icon:focus {
    border-left: none;
    border-right: none;
}

/* Password Strength Meter */
.password-strength {
    display: none;
}

.strength-meter {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-meter-fill.weak {
    width: 33%;
    background: #dc3545;
}

.strength-meter-fill.medium {
    width: 66%;
    background: #ffc107;
}

.strength-meter-fill.strong {
    width: 100%;
    background: #28a745;
}

.strength-text {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
}

/* Checkbox styling */
.register-form .form-check-input:checked {
    background-color: #1a472a;
    border-color: #1a472a;
}

/* Submit button */
.register-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,71,42,0.3);
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26,71,42,0.4);
    background: linear-gradient(135deg, #2d5a3d 0%, #3d7a4f 100%);
}

.register-submit-btn:active {
    transform: translateY(0);
}

.register-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* reCAPTCHA v3 branding notice */
.recaptcha-notice {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: #1a472a;
    text-decoration: underline;
}

/* Login link */
.register-login-link {
    text-align: center;
    margin-top: 20px;
}

.register-login-link p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 10px 0;
}

.register-login-link .btn-outline-login {
    display: inline-block;
    border: 2px solid #1a472a;
    color: #1a472a;
    border-radius: 10px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.register-login-link .btn-outline-login:hover {
    background: #1a472a;
    color: #fff;
    transform: translateY(-1px);
}

/* Back to home */
.register-back-home {
    text-align: center;
    margin-top: 20px;
}

.register-back-home a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.register-back-home a:hover {
    color: #1a472a;
}

/* Footer */
.register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.register-footer p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* Toast container adjustments */
.register-hero .toast-container {
    z-index: 9999;
}

/* Name row */
.register-name-row {
    display: flex;
    gap: 12px;
}

.register-name-row .form-group {
    flex: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
        max-width: 520px;
    }

    .register-features {
        display: none;
    }

    .register-card-wrapper {
        flex: 1;
        padding: 20px;
    }

    .register-card {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .register-hero {
        padding: 10px;
    }

    .register-container {
        margin: 10px;
    }

    .register-card {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .register-card-title {
        font-size: 1.4rem;
    }

    .register-form .form-control {
        padding: 10px 14px;
    }

    .register-submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .register-name-row {
        flex-direction: column;
        gap: 0;
    }

    .register-circle-1,
    .register-circle-2 {
        display: none;
    }

    .register-football-icon,
    .register-trophy-icon {
        display: none;
    }

    .register-card-wrapper {
        padding: 10px;
    }
}

/* Custom scrollbar for card */
.register-card::-webkit-scrollbar {
    width: 6px;
}

.register-card::-webkit-scrollbar-track {
    background: transparent;
}

.register-card::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.register-card::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Animations for page load */
@keyframes regSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes regSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Alert styling */
.register-alert {
    border-radius: 10px;
    border: none;
}

/* Terms link styling */
.register-terms-link {
    color: #1a472a;
    font-weight: 600;
}
