/* ENHANCED REGISTER FORM STYLING */
.form_register {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(46, 46, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    width: 380px;
    max-width: 90vw;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border: 2px solid #2d79f3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(45, 121, 243, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideInLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-150%) translateY(-50%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(-50%);
        opacity: 1;
    }
}

.form_register.hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form_register:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 
                0 0 50px rgba(45, 121, 243, 0.3);
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #B0B0B0;
}

.form_register .flex-column {
    animation: fadeInUp 0.5s ease-out backwards;
}

.form_register .flex-column:nth-child(1) { animation-delay: 0.1s; }
.form_register .flex-column:nth-child(3) { animation-delay: 0.2s; }
.form_register .flex-column:nth-child(5) { animation-delay: 0.3s; }
.form_register .flex-column:nth-child(7) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form_register .flex-column > label {
    color: #E0E0E0;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.form_register .inputForm {
    border: none;
    border-radius: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(46, 46, 46, 0.8);
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.5), 
                inset -3px -3px 8px rgba(62, 62, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.form_register .inputForm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 121, 243, 0.1), transparent);
    transition: left 0.5s;
}

.form_register .inputForm:focus-within::before {
    left: 100%;
}

.form_register .input {
    margin-left: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #E0E0E0;
    font-family: 'Source Code Pro', monospace;
    font-size: 1em;
    transition: all 0.3s;
}

.form_register .input:focus {
    outline: none;
    color: #ffffff;
}

.form_register .inputForm:focus-within {
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.5), 
                inset -3px -3px 8px rgba(62, 62, 62, 0.3), 
                0 0 0 2px #2d79f3,
                0 0 20px rgba(45, 121, 243, 0.3);
    transform: translateY(-2px);
}

.form_register .inputForm .passwordShowHide {
    position: absolute;
    right: 15px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.3em;
}

.form_register .inputForm .passwordShowHide:hover {
    color: #2d79f3;
    transform: scale(1.1);
}

.form_register .inputForm .emailIcon,
.form_register .inputForm .passwordIcon,
.form_register .inputForm .usernameIcon {
    color: #2d79f3;
    font-size: 1.3em;
    transition: all 0.3s;
}

.form_register .inputForm:focus-within .emailIcon,
.form_register .inputForm:focus-within .passwordIcon,
.form_register .inputForm:focus-within .usernameIcon {
    color: #4d99ff;
    transform: scale(1.1);
}

.form_register .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    animation: fadeInUp 0.5s ease-out 0.5s backwards;
}

.form_register .span {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.3s;
}

.form_register .span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d79f3;
    transition: width 0.3s;
}

.form_register .span:hover {
    color: #4d99ff;
}

.form_register .span:hover::after {
    width: 100%;
}

.form_register .button-submit {
    margin: 20px 0 10px 0;
    background: linear-gradient(135deg, #2d79f3 0%, #1c5fcf 100%);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    height: 52px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 121, 243, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out 0.6s backwards;
}

.form_register .button-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form_register .button-submit:hover::before {
    width: 300px;
    height: 300px;
}

.form_register .button-submit:hover {
    background: linear-gradient(135deg, #1c5fcf 0%, #2d79f3 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(45, 121, 243, 0.4);
}

.form_register .button-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(45, 121, 243, 0.3);
}

.form_register .p {
    text-align: center;
    color: #E0E0E0;
    font-size: 14px;
    margin: 5px 0;
    user-select: none;
    animation: fadeInUp 0.5s ease-out 0.7s backwards;
}

.form_register .btn {
    margin-top: 10px;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 8px;
    border: 2px solid transparent;
    background-color: rgba(46, 46, 46, 0.8);
    color: #E0E0E0;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

.form_register .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form_register .btn:hover::before {
    width: 300px;
    height: 300px;
}

.form_register .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(45, 121, 243, 0.5);
}

.form_register .btn:active {
    transform: translateY(-1px);
}

.form_register .btn.google:hover {
    border-color: #ffc400;
    box-shadow: 0 8px 25px rgba(255, 196, 0, 0.2);
}

.form_register .btn.github:hover {
    border-color: #00ff95;
    box-shadow: 0 8px 25px rgba(0, 255, 149, 0.2);
}

.form_register .btn.guest:hover {
    border-color: #0073ff;
    box-shadow: 0 8px 25px rgba(0, 115, 255, 0.2);
}

.form_register .btn.google ion-icon {
    color: #ffc400;
    font-size: 1.5em;
    transition: transform 0.3s;
}

.form_register .btn.github ion-icon {
    color: #00ff95;
    font-size: 1.5em;
    transition: transform 0.3s;
}

.form_register .btn.guest ion-icon {
    color: #0073ff;
    font-size: 1.5em;
    transition: transform 0.3s;
}

.form_register .btn:hover ion-icon {
    transform: scale(1.2) rotate(5deg);
}

.form_register .btn:nth-child(1) {
    animation: fadeInUp 0.5s ease-out 0.8s backwards;
}

.form_register .btn:nth-child(2) {
    animation: fadeInUp 0.5s ease-out 0.9s backwards;
}

.form_register .btn:nth-child(3) {
    animation: fadeInUp 0.5s ease-out 1s backwards;
}

#RegisterError {
    margin-top: 20px;
    position: absolute;
    color: #00ff95;
    width: 100%;
    left: 50%;
    top: 105%;
    font-size: 14px;
    transform: translateX(-50%);
    font-family: 'Source Code Pro', monospace;
    text-align: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    width: 100%;
    background: #1E1E1E;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.form_register .inputForm:focus-within + .password-strength {
    opacity: 1;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc400;
}

.password-strength-bar.strong {
    width: 100%;
    background: #00ff95;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .form_register {
        left: 50%;
        width: 350px;
    }
}

@media (max-width: 768px) {
    .form_register {
        left: 50%;
        width: 90%;
        max-width: 380px;
        padding: 25px;
        gap: 8px;
    }

    .form_register .inputForm {
        height: 48px;
    }

    .form_register .button-submit {
        height: 48px;
    }

    .form_register .btn {
        height: 48px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .form_register {
        width: 95%;
        padding: 20px;
        border-radius: 15px;
    }

    .form_register .input {
        font-size: 0.95em;
    }

    .form_register .button-submit,
    .form_register .btn {
        height: 45px;
    }

    .form_register .flex-column > label {
        font-size: 13px;
    }

    .form_register .p,
    .form_register .span {
        font-size: 13px;
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .form_register {
        padding: 15px;
        gap: 5px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form_register .inputForm,
    .form_register .button-submit,
    .form_register .btn {
        height: 40px;
    }
    
    .form_register .flex-column > label {
        font-size: 12px;
        margin-bottom: 3px;
    }
}