/* ==============================
   ID SELECTORS & MODALS
   ============================== */

#login_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: #292929 url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

#login_all {
    width: 800px;
    max-width: 94%;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
    padding: 40px;
    position: relative;
}

#social_section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

#sonic_title {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

#main_footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
}

#main_footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

#main_footer a:hover {
    text-decoration: underline;
}

#small_modal_in {
    max-width: 400px;
    width: calc(100% - 20px);
    margin: 40px auto;
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    position: relative;
    padding: 20px;
}

#small_modal_content {
    width: 100%;
}

#over_modal_in {
    max-width: 400px;
    width: calc(100% - 20px);
    margin: 40px auto;
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    position: relative;
    padding: 20px;
}

#over_modal_content {
    width: 100%;
}

#small_modal_content .modal_title {
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

#small_modal_content .full_input {
    width: 100%;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

#small_modal_content .full_input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#small_modal_content .theme_btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
}

#small_modal_content .theme_btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ==============================
   CLASS SELECTORS (.class)
   ============================== */
   
.top_notify_placeholder .top_notify .close_notify,
.top_notify_placeholder .top_notify .fa-times,
.top_notify_placeholder .top_notify button, 
.top_notify_icon img {
    display: none;
}

.top_notify_placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 20px;
}

.top_notify_placeholder .top_notify {
  display: inline-block;
  max-width: 60%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,107,107,0.5);
  color: #ff6b6b;
  padding: 10px 18px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  line-height: 1.4em;
  animation: fadeIn 0.25s ease-in-out;
  box-shadow: 0 0 10px rgba(255,80,80,0.2);
}

.login-container {
    width: 100%;
    max-width: 420px;
    min-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 20px;
    margin: 0 auto;
}

.login-card {
    position: relative;
    z-index: 10;
    min-width: 800px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-card:hover .card-glow {
    opacity: 1;
}

.centered_element { text-align: center; }
.login_text { margin-bottom: 20px; }

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

.input-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.input-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.input-container:focus-within .input-bg {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 28px 24px 14px 24px;
    font-size: 16px;
    font-weight: 900;
    outline: none;
    position: relative;
    z-index: 2;
}

.input-container input::placeholder {
    opacity: 0 !important;
}

.input-container label {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 900;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 12px;
    transform: translateY(0);
}

.input-wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: all 0.3s ease;
    z-index: 4;
}

.input-container:focus-within .input-wave {
    left: 100%;
    animation: inputWaveFlow 1s ease-in-out;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.password-toggle .hide-icon { display: none; }
.password-toggle.show-password .eye-open { opacity: 0; transform: scale(0.8); }
.password-toggle.show-password .eye-closed { opacity: 1; transform: scale(1); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.gradient-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
    overflow: hidden;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 19px;
    background: linear-gradient(
        60deg,
        #f79533,
        #f37055,
        #ef4e7b,
        #a166ab,
        #5073b8,
        #1098ad,
        #07b39b,
        #6fba82
    );
    background-size: 300% 300%;
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
}

.button-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.gradient-button:hover .button-bg {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}

.gradient-button .button-content i {
    margin-right: 5px;
}

.btn-loader {
    position: absolute;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-wave {
    width: 4px;
    height: 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    animation: loaderWave 1.2s ease-in-out infinite;
}

.loader-wave:nth-child(2) { animation-delay: 0.1s; }
.loader-wave:nth-child(3) { animation-delay: 0.2s; }

.gradient-button.loading .btn-text { opacity: 0; }
.gradient-button.loading .btn-loader { opacity: 1; }

.divider {
    display: flex;
    align-items: center;
    margin: 5px 0;
    gap: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    position: relative;
    overflow: hidden;
}

.line-gradient {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: lineFlow 3s ease-in-out infinite;
}

.divider span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.social_container {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto; 
}

.social_element {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 80px;
    border-radius: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.social_element i {
    font-size: 64px;
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* SCALE SAMO IKONA, NE BOX */
.social_element:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social_element:hover {
    background: rgba(255, 255, 255, 0.05); 
}

.sonic-player {
    width: 100%;
    max-width: 700px;
    padding: 15px 15px;
    text-align: center;
}

.language-switch img {
    width: 32px;
    height: auto;
    cursor: pointer;
}

.cookie_wrap.back_modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie_button {
	display: flex;
	align-items: center;
}

.cookie_button button {
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 16px;
    transition: all 0.3s ease;
    color:#fff;
}

.cookie_button button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 20px rgba(213, 0, 249, 0.6);
}

.signup-link {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    animation: fadeIn 0.8s ease;
}

.signup-link p {
    margin: 0;
}

.signup-link .bclick {
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.signup-link .bclick:hover {
    color: #aaaaaa;
    text-shadow: 0 0 6px rgba(200, 200, 200, 0.4);
    cursor: pointer;
}

.selectboxit-btn.selectboxit-enabled,
.selectboxit-btn.selectboxit-enabled:hover,
.selectboxit-btn.selectboxit-enabled:focus,
.selectboxit-btn.selectboxit-enabled:active {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    font-weight: 900;
    box-shadow: 0 0 0 rgba(0,0,0,0) !important;
}

.selectboxit-btn.selectboxit-enabled:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.3) !important;
}

.selectboxit-list .selectboxit-option-anchor,
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor,
.selectboxit-list > .selectboxit-disabled > .selectboxit-option-anchor {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    font-weight: 900;
    box-shadow: 0 0 0 rgba(0,0,0,0) !important;
    transition: all 0.3s ease;
}

.selectboxit-list .selectboxit-option-anchor:hover,
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 12px rgba(255,255,255,0.3) !important;
    transform: scale(1.03);
}

.selectboxit-container span { 
    font-size: 16px; font-weight: 900; 
}

.selectboxit-options {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.input-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.input-container:focus-within .input-bg {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group.error .input-bg {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.form-group.error .input-container input {
    color: #fff;
}

.form-group.error .input-container label {
    color: #ff6b6b;
}

.form-group .error-message {
    display: none;
    margin-top: 20px;
    font-size: 14px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-group.error .error-message {
    display: block;
}

.password-container {
    position: relative;
}

.forgot_password {
    font-size: 16px;
    font-weight: 900;
}

.rules_text_elem .rules_text {
    font-size: 14px;
}


.setting_element.error .selectboxit-container {
    border-color: #ff6b6b !important;
}

.setting_element.error .selectboxit-text {
    color: #ff6b6b !important;
}

.selectboxit-btn.error,
.selectboxit-list.error {
    border: 1px solid #ff6b6b !important;
    color: #ff6b6b !important;
}

/* ==============================
   KEYFRAMES / ANIMATIONS
   ============================== */

@keyframes gradientFlow {
}

@keyframes inputWaveFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes loaderWave {
    0%, 80%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    40% { transform: scaleY(1); opacity: 1; }
}

@keyframes lineFlow {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

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

/* Animacija gradijenta */
@keyframes animatedgradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    #login_wrap {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}

@keyframes successWaveMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==============================
   MOBILE / RESPONSIVE
   ============================== */

@media (max-width: 768px) {
    #login_wrap {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}

@media (max-width: 600px) {
    /* Login wrap & card adjustments */
    #login_wrap { padding: 10px; }
    .login-container { padding: 10px; }
    .login-card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: 20px;
        border-radius: 16px;
    }

    /* Form */
    #loginForm { width: 100%; position: relative; }

    /* Form options */
    .form-options {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Social icons container */
    .social_container {
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    /* Divider adjustments */
    .divider span { font-size: 14px; }
    .divider-line { overflow: hidden; }
    .line-gradient { width: 100%; left: 0; }
}

@media (max-width: 480px) {
    .login-card { padding: 28px; border-radius: 20px; }
    .login-header h2 { font-size: 1.875rem; }
    .gradient-icon { width: 64px; height: 64px; }
    .form-options { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
    .social_container {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: hidden;
    }

    .social_element {
        min-width: 50px;
        min-height: 50px;
        border-radius: 12px;
    }

    .social_element i {
        font-size: 48px;
    }

    .social_element:hover i {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    #sonic_title {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
  .top_notify_placeholder {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .top_notify_placeholder .top_notify {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
  }
}

.form-options {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
}

/* Mobile tweak */
@media (max-width: 767px) {
    .form-options {
        flex-direction: row !important;
    }
    .forgot_password {
        margin: 0;
        text-align: right;
        font-size: 14px;
    }
}