.auth-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.auth-warning-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 18px;
    padding: 36px;
    max-width: 540px;
    width: 90%;
    text-align: center;
    border: 2px solid rgba(244, 67, 54, 0.5);
}
.auth-warning-title {
    color: #f44336;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 18px 0;
    text-shadow: 1px 1px rgba(0,0,0,0.5);
}
.auth-warning-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 18px 18px 18px;
}
.login-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 18px;
    padding: 36px;
    width: 100%;
    max-width: 405px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: max-width 0.3s ease;
}
.login-container.show-help {
    max-width: 810px !important;
}
@media (max-width: 600px) {
    .login-wrapper {
        padding: 20px 10px;
    }
    .login-container {
        width: calc(100% - 40px);
        max-width: 450px;
        padding: 30px 20px;
    }
    .login-container.show-help {
        max-width: calc(100% - 40px) !important;
    }
    .social-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .social-btn-small {
        width: 45px;
        height: 45px;
    }
}
.login-header {
    background: rgba(0,86,122,0.25);
    padding: 14px 18px;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: -36px -36px 18px -36px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.login-header h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    text-shadow: 1px 1px rgba(0,0,0,0.3);
    flex: 1;
}
.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}
.back-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.back-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.login-body {
    padding: 0;
}
.input-group {
    margin-bottom: 14px;
}
.input-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px rgba(149, 177, 46, 0.3);
}
.input-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,0.3);
    transition: all 0.3s;
    box-sizing: border-box;
}
.input-group input.error {
    border-color: #F44336 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px #F44336;
    animation: inputErrorShake 0.5s ease-in-out;
}
@keyframes inputErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.input-group input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}
.input-group input::placeholder {
    color: rgba(255,255,255,0.6);
    font-weight: normal;
}
.shadow-button {
    border-radius: 11px;
    border: none;
    padding: 0px 0.5px;
    margin: 0;
    cursor: pointer;
    height: fit-content;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-bottom: 14px;
    transition: all 0.1s ease;
}
.shadow-button:disabled {
    cursor: default;
}
.shadow-button:active {
    transform: translateY(2px);
}
.shadow-button-inner {
    border-radius: 11px;
    -webkit-text-fill-color: white;
    -webkit-text-stroke-width: 0.3px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.gosuslugi-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.blue {
    background: rgb(0,122,255);
    -webkit-text-stroke-color: rgb(0, 64, 128);
    box-shadow: 0px 0.5px 0px 0.5px rgba(0, 96, 204), 0px 4px 0px 0.5px rgba(0, 96, 204);
}
.blue:active {
    box-shadow: 0px 0px 0px 0.5px rgba(0, 96, 204), 0px 2px 0px 0.5px rgba(0, 96, 204);
}
.blue .shadow-button-inner {
    box-shadow: inset 0px 0px 10px rgba(0, 142, 255, 0.5);
}
.white {
    background: #ffffff;
    -webkit-text-stroke-color: rgb(200, 200, 200);
    box-shadow: 0px 0.5px 0px 0.5px rgb(180, 180, 180), 0px 4px 0px 0.5px rgb(180, 180, 180);
}
.white:active {
    box-shadow: 0px 0px 0px 0.5px rgb(180, 180, 180), 0px 2px 0px 0.5px rgb(180, 180, 180);
}
.white .shadow-button-inner {
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.05);
}
.social-login {
    margin-top: 18px;
    text-align: center;
}
.social-title {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px rgba(0,0,0,0.3);
    margin: 0 0 11px 0;
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}
.social-btn-small {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.social-btn-small:not(:disabled):hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
}
.social-btn-small:active {
    transform: translateY(1px) scale(0.98);
}
.google-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
.discord-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
.steam-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
.youtube-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
.social-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.google-btn,
.apple-btn,
.microsoft-btn,
.github-btn,
.discord-btn,
.twitter-btn,
.vk-btn,
.yandex-btn,
.email-btn,
.steam-btn,
.youtube-btn {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.social-icon-small {
    width: 25px;
    height: 25px;
    object-fit: contain;
}
.help-section {
    margin-top: 18px;
    text-align: center;
}
.help-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
    padding: 7px 14px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.help-button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 11px;
    border-radius: 11px;
    margin-bottom: 14px;
    font-size: 13px;
    display: none;
}
.help-content {
    padding: 0;
}
.help-sections-container {
    display: flex;
    gap: 27px;
    margin-bottom: 5px;
}
.help-section-modal {
    flex: 1;
    text-align: center;
}
.help-section-modal h3 {
    color: rgb(32, 167, 234);
    font-size: 14px;
    margin: 0 0 14px 0;
    text-shadow: 1px 1px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}
.help-text-block {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 11px;
    padding: 14px;
    margin: 14px 0;
}
.help-text-block p {
    color: #fff;
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
}
.image-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}
.help-image {
    max-width: 100%;
    height: auto;
    max-height: 270px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.2);
}
.help-footer-text {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.help-footer-text p {
    color: #ccc;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .auth-warning-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
  }
  .auth-warning-content {
    padding: 30px 20px;
    max-width: calc(100% - 30px);
    width: calc(100% - 30px);
    margin: 0 15px;
    background: #17212B !important;
    border: 1px solid rgba(51, 144, 236, 0.3) !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }
  .auth-warning-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #f44336 !important;
    text-shadow: none !important;
  }
  .auth-warning-text {
    font-size: 14px;
    color: #e4e4e4 !important;
    text-shadow: none !important;
  }
  .login-wrapper {
    padding: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .login-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 15px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
  }
  .login-container.show-help {
    max-width: 100% !important;
  }
  .login-header {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15) !important;
    margin: -20px -15px 20px -15px;
    padding: 15px;
  }
  .login-header h2 {
    color: #ffffff !important;
    font-size: 16px;
    text-shadow: none !important;
  }
  .input-group input {
    background: rgba(30, 39, 50, 0.6) !important;
    border: 1px solid rgba(51, 144, 236, 0.3) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .input-group input:focus {
    border-color: rgba(51, 144, 236, 0.5) !important;
    background: rgba(30, 39, 50, 0.8) !important;
    box-shadow: none !important;
  }
  .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }
  .shadow-button {
    box-shadow: none !important;
  }
  .shadow-button:active {
    transform: none !important;
  }
  .blue {
    background: rgba(51, 144, 236, 0.3) !important;
    box-shadow: none !important;
    border: 1px solid rgba(51, 144, 236, 0.5) !important;
  }
  .blue:active {
    box-shadow: none !important;
  }
  .blue .shadow-button-inner {
    box-shadow: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
  }
  .social-title {
    color: #3390ec !important;
    text-shadow: none !important;
  }
  .social-btn-small {
    background: rgba(30, 39, 50, 0.6) !important;
    border: 1px solid rgba(51, 144, 236, 0.3) !important;
    box-shadow: none !important;
  }
  .social-btn-small:hover {
    background: rgba(51, 144, 236, 0.2) !important;
    border-color: rgba(51, 144, 236, 0.5) !important;
    box-shadow: none !important;
  }
  .social-btn-small:active {
    transform: none !important;
    box-shadow: none !important;
  }
  .help-button {
    background: rgba(30, 39, 50, 0.6) !important;
    border: 1px solid rgba(51, 144, 236, 0.3) !important;
    color: #ffffff !important;
  }
  .help-button:hover {
    background: rgba(51, 144, 236, 0.2) !important;
    border-color: rgba(51, 144, 236, 0.5) !important;
    color: #ffffff !important;
  }
  .error-message {
    background: rgba(244, 67, 54, 0.1) !important;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
    color: #f44336 !important;
  }
  .help-section-modal h3 {
    color: #3390ec !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15) !important;
  }
  .help-text-block {
    background: transparent !important;
    border: 1px solid rgba(51, 144, 236, 0.15) !important;
  }
  .help-text-block p {
    color: #e4e4e4 !important;
    text-shadow: none !important;
  }
  .help-footer-text {
    border-top: 1px solid rgba(51, 144, 236, 0.15) !important;
  }
  .help-footer-text p {
    color: #e4e4e4 !important;
    text-shadow: none !important;
  }
  .help-sections-container {
    flex-direction: column;
    gap: 20px;
  }
  .social-buttons {
    grid-template-columns: repeat(4, 1fr);
  }
}
