:root {
    --bg-primary: #0A041A;
    --bg-secondary: #1A0F2F;
    --accent-purple: #7D3CFF;
    --accent-cyan: #00F0FF;
    --text-main: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?q=80&w=2070&auto=format&fit=crop') no-repeat center/cover;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 4, 26, 0.9) 0%, rgba(26, 15, 47, 0.8) 100%);
    z-index: -1;
}

.register-container {
    background: linear-gradient(145deg, rgba(26, 15, 47, 0.6), rgba(58, 43, 86, 0.3));
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(125, 60, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.logo:hover h1::after {
    transform: scaleX(1);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-image: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan)) 1;
    background: rgba(0, 0, 0, 0.2);
}

.form-danger {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    color: var(--error-message);
    margin-bottom: 16px;
    text-decoration: underline;
}
.form-success {
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    color: var(--success-message);
    margin-bottom: 16px;
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    padding: 16px;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 60, 255, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 24px;
    color: #C0B5D6;
}

.login-link a {
    color: var(--accent-cyan);
    text-decoration: none;
    position: relative;
}

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

.login-link a:hover::after {
    width: 100%;
}