/* Register Page Styles - Soccer Master Theme */

.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../soccer-master/images/bg-pattern.png') repeat;
    opacity: 0.03;
    z-index: 1;
}

.register-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

/* Register Card */
.register-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(238, 30, 70, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ee1e46, #ff4757, #ee1e46);
    border-radius: 24px 24px 0 0;
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-section {
    margin-bottom: 1.5rem;
}

.register-logo {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
}

.register-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.register-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Alert */
.register-alert {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #ff6b7a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.register-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Form */
.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: #ee1e46;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #ee1e46;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(238, 30, 70, 0.15),
        0 4px 12px rgba(238, 30, 70, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-control.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

/* Select Dropdown Dark Theme */
select.form-control {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
}

select.form-control option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
    border: none;
}

select.form-control option:hover {
    background: #2a2a2a;
    color: #ffffff;
}

select.form-control option:checked {
    background: #ee1e46;
    color: #ffffff;
}

/* Firefox specific select styling */
@-moz-document url-prefix() {
    select.form-control {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }
    
    select.form-control option {
        background: #1a1a1a;
        color: #ffffff;
    }
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ee1e46;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    color: #ff6b7a;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Submit Button */
.btn-register {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ee1e46 0%, #c41e3a 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(238, 30, 70, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ff1e46 0%, #d41e3a 100%);
}

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

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-register.loading .btn-text {
    opacity: 0;
}

.btn-register.loading .btn-loader {
    opacity: 1;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.register-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.login-link {
    color: #ee1e46;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #ff1e46;
    text-decoration: underline;
}

/* Success Page Styles */
.success-card {
    text-align: center;
    padding: 4rem 3rem;
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon i {
    font-size: 5rem;
    color: #28a745;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-content {
    margin-bottom: 3rem;
}

.success-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-login, .btn-home {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login {
    background: linear-gradient(135deg, #ee1e46 0%, #c41e3a 100%);
    color: #ffffff;
    border: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 30, 70, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.success-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .register-title {
        font-size: 1.75rem;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-icon i {
        font-size: 4rem;
    }
    
    .success-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem 1rem;
    }
    
    .register-title {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem;
    }
    
    .btn-register {
        padding: 0.875rem 1.5rem;
    }
}
