.register-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    padding: 2rem;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-box {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.register-form-container {
    text-align: center;
    width: 100%;
}

.register-form-container h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.register-form-container .subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group .required {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-wrapper input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.8rem;
}

.emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0.8rem;
    position: absolute;
    z-index: 2;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.emoji-btn:active {
    transform: scale(0.95);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 0.6rem;
}

.form-group.checkbox input {
    margin-top: 0.4rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-group.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: var(--secondary-color);
}

.register-side {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.side-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.benefits li i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .register-wrapper {
        grid-template-columns: 1fr;
    }

    .register-side {
        display: none;
    }

    .register-box {
        padding: 2rem;
    }

    .register-form-container h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .register-container {
        padding: 1.5rem;
    }

    .register-wrapper {
        border-radius: 12px;
    }

    .register-box {
        padding: 1.8rem;
    }

    .register-form-container h1 {
        font-size: 1.5rem;
    }

    .register-form-container .subtitle {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .input-wrapper input {
        padding: 0.8rem 0.9rem 0.8rem 2.3rem;
        font-size: 0.9rem;
    }

    .emoji-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
        right: 0.7rem;
    }

    .register-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        min-height: calc(100vh - 80px);
        padding: 1rem;
    }

    .register-wrapper {
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .register-box {
        padding: 1.5rem 1.2rem;
    }

    .register-form-container h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .register-form-container .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .input-wrapper input {
        padding: 0.75rem 0.8rem 0.75rem 2.2rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .emoji-btn {
        width: 32px;
        height: 32px;
        font-size: 22px;
        right: 0.6rem;
    }

    .form-group.checkbox {
        margin-bottom: 1.2rem;
        gap: 0.4rem;
    }

    .form-group.checkbox input {
        width: 16px;
        height: 16px;
    }

    .form-group.checkbox label {
        font-size: 0.8rem;
    }

    .register-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        gap: 0.4rem;
    }

    .login-link {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
}
