.register-section .form-control,
.register-section .form-control:focus {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none !important;
    outline: 0;
    border: none;
    height: auto;
}

.register-section button:focus,
.register-section button:active,
.register-section button:hover {
    outline: none !important;
    outline-offset: 0 !important;
}

.register-section input:-webkit-autofill,
.register-section input:-webkit-autofill:hover,
.register-section input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.container {
    max-width: 70vw !important;
    margin: 0 auto !important;
    width: 70vw;
}


@media (max-width: 768px) {
    .container {
        margin: 0 8vw !important;
    }
}
.register-section {
    min-height: 100vh;
    padding: 150px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(#393939, #0c0c0c);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.container {
    max-width: 70vw !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.register-wrapper {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    z-index: 10;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.register-wrapper:hover {
    transform: translateY(-2px);
}

.register-header {
    text-align: center;
    margin-bottom: 35px;
}

.register-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(60, 55, 241, 0.5), rgba(90, 84, 245, 0.5));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.register-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.register-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.register-form {
    margin-bottom: 25px;
}

.register-section .form-group {
    margin-bottom: 18px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none !important;
    height: auto !important;
}

.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.input-wrapper input:focus,
.input-wrapper.focused input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(171, 171, 171, 0.7);
    box-shadow: 0 0 0 3px rgba(60, 55, 241, 0.1) !important;
}

.input-wrapper.error input {
    border-color: #FF4444;
}

.input-wrapper label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 8px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper.focused label {
    top: -10px;
    left: 45px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.64);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper.focused .input-icon {
    color: #3C37F1;
}


.input-helper {
    position: absolute;
    right: 15px;
    bottom: -20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-wrapper input:focus ~ .input-helper {
    opacity: 1;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

.password-strength {
    display: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-bar.weak {
    width: 25%;
    background: #FF4444;
}

.strength-bar.medium {
    width: 50%;
    background: #FFA500;
}

.strength-bar.strong {
    width: 75%;
    background: #FFD700;
}

.strength-bar.very-strong {
    width: 100%;
    background: #00D663;
}

.terms-checkbox {
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .checkmark {
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: linear-gradient(135deg, #3C37F1, #5A54F5);
    border-color: #3C37F1;
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.terms-text {
    line-height: 1.4;
}

.terms-text a {
    color: #3C37F1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-text a:hover {
    color: #5A54F5;
    text-decoration: underline;
}

.alert-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #FF6B6B;
}

.alert-message.success {
    background: rgba(68, 255, 68, 0.1);
    border: 1px solid rgba(68, 255, 68, 0.3);
    color: #6BFF6B;
}

.alert-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}


.btn-register {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3C37F1, #5A54F5);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    outline: none !important;
    box-shadow: none !important;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.4) !important;
}

.btn-register:active {
    transform: translateY(0);
}

.btn-discord {
    width: 100%;
    padding: 16px;
    background: #5865F2;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    outline: none !important;
    box-shadow: none !important;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4) !important;
}

.btn-discord i {
    font-size: 1.4rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.64);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-link a {
    color: #3C37F1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.login-link a:hover {
    color: #5A54F5;
    transform: translateY(-1px);
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float-shape 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3C37F1;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #5A54F5;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #5865F2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 120px 20px 60px;
    }

    .register-wrapper {
        padding: 40px 30px;
        border-radius: 25px;
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .register-title {
        font-size: 1.9rem;
    }

    .register-logo {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {

    .register-wrapper {
        padding: 35px 25px;
        border-radius: 20px;
        width: calc(100% - 30px);
        margin: 0 15px;
    }

    .register-title {
        font-size: 1.7rem;
    }

    .register-subtitle {
        font-size: 0.9rem;
    }

    .input-wrapper input {
        padding: 14px 15px 14px 45px;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 15px;
        font-size: 1.1rem;
    }

    .input-wrapper label {
        left: 45px;
        font-size: 0.95rem;
    }

    .input-wrapper input:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label,
    .input-wrapper.focused label {
        left: 40px;
        font-size: 0.8rem;
        background: rgba(0, 0, 0, 0.64);
    }

    .checkbox-wrapper {
        font-size: 0.85rem;
    }

    .btn-register,
    .btn-discord {
        padding: 14px;
        font-size: 1rem;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(60, 55, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(60, 55, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(60, 55, 241, 0);
    }
}

.btn-register:focus {
    animation: pulse 1.5s infinite;
}

.btn-register.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-register.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: light) {
    .register-section {
        background: #f0f0f0;
    }
}