/* Auth - Register page styles */
:root {
    --primary-color: #1a237e;
    --primary-light: #3f51b5;
    --secondary-color: #00bcd4;
    --accent-color: #ff6f00;
    --success-color: #4caf50;
    --dark-bg: #0f172a;
    --text-light: #e8eaf6;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background - Optimized */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Main Container */
.register-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.register-header {
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.register-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--success-color);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    animation: pulse 2s infinite;
    will-change: transform;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.register-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.register-header p {
    opacity: 0.9;
    margin: 0;
}

.register-form {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.form-input, .form-select {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    will-change: border-color;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    z-index: 2;
}

.form-input:focus + .input-icon,
.form-select:focus + .input-icon {
    color: var(--success-color);
}

.workshop-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.workshop-option {
    position: relative;
}

.workshop-option input[type="radio"] {
    display: none;
}

.workshop-card {
    display: block;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.workshop-card:hover {
    border-color: var(--success-color);
    background: #f0fdf4;
    transform: translateY(-2px);
}

.workshop-option input[type="radio"]:checked + .workshop-card {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.workshop-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    display: block;
}

.workshop-title {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.workshop-duration {
    font-size: 0.7rem;
    color: #64748b;
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success-color), #66bb6a);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.form-links {
    text-align: center;
    margin-top: 2rem;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--accent-color);
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 1rem;
}

.back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateX(-3px);
}

.alert {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.password-requirements {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }

    .register-form {
        padding: 2rem 1.5rem;
    }

    .back-to-home {
        top: 1rem;
        left: 1rem;
    }

    .workshop-selector {
        grid-template-columns: 1fr;
    }
}
