/* SchalkesOpa Register - Glassmorphism Theme */
/* Datei: /assets/css/register.css */

/* CSS Variables */
:root {
    --primary: #ff006e;
    --secondary: #00ff88;
    --accent: #3b82f6;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(255, 255, 255, 0.05);
}

/* Register Container */
.register-container {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.register-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

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

/* Register Intro */
.register-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.register-intro h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.5));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px var(--primary)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px var(--primary)); }
}

.register-intro p {
    font-size: 1.2rem;
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Membership Info Box */
.membership-info {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

.membership-info p {
    color: var(--light);
    margin: 0;
    font-size: 1rem;
}

.membership-info a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.membership-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.membership-info a:hover::after {
    width: 100%;
}

/* Register Form */
.register-form {
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing Border Effect */
.register-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 30px;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.register-form:hover::before {
    opacity: 0.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Input Fields */
.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3),
                inset 0 0 10px rgba(255, 0, 110, 0.1);
}

/* Input validation states */
.form-group input:valid {
    border-color: rgba(0, 255, 136, 0.5);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 0, 110, 0.5);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Security Message */
#security-message {
    text-align: center;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

/* Register Message */
#register-message {
    background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    color: var(--light);
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

#register-message.success {
    border-color: rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
}

#register-message.error {
    border-color: rgba(255, 0, 110, 0.3);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(255, 0, 110, 0.05) 100%);
}

/* Member Login Hint */
.member-login-hint {
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 1s ease-out 0.4s both;
}

.member-login-hint p {
    color: var(--light);
    opacity: 0.8;
}

.member-login-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.member-login-hint a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.member-login-hint a:hover {
    color: var(--secondary);
}

.member-login-hint a:hover::after {
    width: 100%;
    background: var(--secondary);
}

/* Floating Particles Effect */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.register-container::after {
    content: '✦';
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    top: 10%;
    right: 10%;
}

/* Loading State */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        padding: 30px 15px;
    }
    
    .register-intro h1 {
        font-size: 2rem;
    }
    
    .register-form {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-intro h1 {
        font-size: 1.75rem;
    }
    
    .register-intro p {
        font-size: 1rem;
    }
    
    .register-form {
        padding: 25px 15px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
}

/* Animation für Formular-Elemente */
.form-group:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.form-group:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.4s both; }
.form-group:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.5s both; }
.form-group:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.6s both; }
.btn-submit { animation: fadeInUp 0.8s ease-out 0.7s both; }

/* Focus-within Effect für Form */
.register-form:focus-within {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
                inset 0 0 40px rgba(255, 255, 255, 0.08);
}

.register-form:focus-within::before {
    opacity: 0.7;
}