.register-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg,
    rgba(31, 95, 224, 0.05) 0%,
    rgba(59, 130, 246, 0.08) 50%,
    rgba(147, 51, 234, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.register-container::before {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #1f5fe0, #3b82f6);
    top: -250px;
    left: -250px;
}

.register-container::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #9333ea, #3b82f6);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.register-card {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(31, 95, 224, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.register-card:hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(31, 95, 224, 0.12);
    transform: translateY(-4px);
}

.register-card__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1f5fe0, #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow:
        0 10px 30px rgba(31, 95, 224, 0.3),
        0 0 0 8px rgba(31, 95, 224, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(31, 95, 224, 0.3), 0 0 0 8px rgba(31, 95, 224, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(31, 95, 224, 0.4), 0 0 0 12px rgba(31, 95, 224, 0.15); }
}

.register-card__title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.register-card__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.register-card__form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.register-card__form .form-group {
    position: relative;
    margin-bottom: 0;
}

.register-card__form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.register-card__form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.register-card__form input:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 4px rgba(31, 95, 224, 0.1),
        0 8px 20px rgba(31, 95, 224, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.register-card__form input:focus + label {
    color: var(--primary-color);
}

.register-card__form button[type="submit"] {
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f5fe0, #3b82f6);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(31, 95, 224, 0.3);
    position: relative;
    overflow: hidden;
}

.register-card__form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.register-card__form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(31, 95, 224, 0.4);
}

.register-card__form button[type="submit"]:hover::before {
    left: 100%;
}

.register-card__form button[type="submit"]:active {
    transform: translateY(0);
}

.register-card__footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.register-card__footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.register-card__footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    transition: width 0.3s ease;
}

.register-card__footer a:hover {
    color: #1f5fe0;
}

.register-card__footer a:hover::after {
    width: 100%;
}

.register-card__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.register-card__divider::before,
.register-card__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.register-card__divider span {
    padding: 0 1rem;
}

@media (max-width: 640px) {
    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .register-card__title {
        font-size: 1.875rem;
    }

    .register-card__subtitle {
        font-size: 0.95rem;
    }

    .register-card__icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-container::before,
    .register-container::after,
    .register-card__icon {
        animation: none;
    }
}
