/* Clean Banking Login Form - Complete & Self-Contained */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    color: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-card {
    background: #000000;
    border-radius: 16px;
    padding: 40px 32px 32px;
    border: 1px solid #333333;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

/* Text Logo Styles */
.text-logo {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.k-color {
    color: #D255D9;
}

.login-header h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

/* Highlighted word in H1 */
.highlight {
    color: #D255D9;
}

.login-header p {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    background: #000000;
    border: 1.5px solid #333333;
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #D255D9;
}

.form-group input::placeholder {
    color: #888888;
}

/* Floating Label Styles */
.floating-label {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 15px;
    color: #888888;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* When input is focused or has content, move label to top */
.form-group input:focus + .floating-label,
.form-group input:not(:placeholder-shown) + .floating-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: #000000;
    padding: 0 5px;
    color: #D255D9;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #D255D9;
}

.eye-closed {
    display: none;
}

.password-toggle.show-password .eye-open {
    display: none;
}

.password-toggle.show-password .eye-closed {
    display: block;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#captchaCanvas {
    background: #000000;
    border-radius: 8px;
    border: 1.5px solid #333333;
}

.captcha-input-wrapper {
    position: relative;
    flex: 1;
}

.captcha-input-wrapper input {
    width: 100%;
    background: #000000;
    border: 1.5px solid #333333;
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.captcha-input-wrapper input:focus {
    border-color: #D255D9;
}

.refresh-captcha-btn {
    background: #000000;
    border: 1.5px solid #333333;
    border-radius: 8px;
    color: #D255D9;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    font-weight: bold;
}

.refresh-captcha-btn:hover {
    color: #D255D9;
}

/* Floating label for CAPTCHA */
.captcha-input-wrapper .floating-label {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 15px;
    color: #888888;
    pointer-events: none;
    transition: all 0.2s ease;
}

.captcha-input-wrapper input:focus + .floating-label,
.captcha-input-wrapper input:not(:placeholder-shown) + .floating-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: #000000;
    padding: 0 5px;
    color: #D255D9;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: #D255D9;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background: #B844C0;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #333333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text {
    transition: opacity 0.2s ease;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

/* Switch Form Link */
.switch-form {
    text-align: center;
    margin-top: 10px;
}

.switch-form p {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.switch-form a {
    color: #D255D9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.switch-form a:hover {
    color: #B844C0;
}

/* Error States */
.error-message {
    color: #E27BE8;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error input {
    border-color: #E27BE8;
}

.form-group.error input:focus {
    border-color: #E27BE8;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 32px 20px;
    opacity: 0;
    transition: all 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateY(16px);
    z-index: 10;
}

.success-message.show {
    display: flex;
    opacity: 1;
    transform: translateY(-50%) translateY(0);
}

.success-icon {
    margin: 0 auto 16px;
    animation: successScale 0.5s ease-out;
}

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

.success-message h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.success-message p {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 12px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .refresh-captcha-btn {
        width: 100%;
        margin-top: 10px;
    }
}

/* Simple Notification Bell for Login Page */
.simple-notification-bell {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-notification-bell i {
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.simple-notification-bell:hover i {
    color: #D255D9;
}

.simple-notification-bell .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E27BE8;
    color: #ffffff;
    font-size: 8px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    display: none;
}

.simple-notification-bell .notification-badge.show {
    display: flex;
}

/* Telegram Support Button */
.telegram-support {
    text-align: center;
    margin-top: 20px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #D255D9;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #D255D9;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.telegram-btn:hover {
    background: #B844C0;
    transform: translateY(-1px);
}

/* Support Button - Base style for all support buttons */
.btn-support {
    color: #ffffff; /* White text */
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0 auto;
    transform: translateY(0);
    text-decoration: none; /* Remove underline */
    width: 100%;
    max-width: 250px;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
}

/* Telegram Support Button - Official Telegram blue */
.btn-support#telegramSupportBtn {
    background: #0088cc; /* Official Telegram blue color */
}

.btn-support#telegramSupportBtn:hover {
    background: #007bb5; /* Slightly darker blue for hover effect */
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3); /* Blue shadow */
    text-decoration: none; /* Ensure no underline on hover */
}

/* Signal Support Button - Official Signal blue */
.btn-support#signalSupportBtn {
    background: #3a76f0; /* Official Signal blue color */
}

.btn-support#signalSupportBtn:hover {
    background: #365fc7; /* Slightly darker blue for hover effect */
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(58, 118, 240, 0.3); /* Blue shadow */
    text-decoration: none; /* Ensure no underline on hover */
}

/* Common hover and active states */
.btn-support:active {
    transform: translateY(-10px);
    text-decoration: none; /* Ensure no underline on active state */
}

.btn-support i {
    color: #ffffff; /* White icon */
}

.btn-support .fas.fa-comment {
    font-size: 20px; /* Match the size of the previous SVG */
}

.btn-support svg {
    color: #ffffff; /* White SVG icon */
    fill: currentColor;
    flex-shrink: 0;
}

.btn-support span {
    color: #ffffff; /* White text */
    font-weight: bold; /* Make it bold for emphasis */
}

/* Support Buttons Container */
.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

/* Legacy classes for backward compatibility */
.btn-telegram {
    background: #D255D9; /* Red color */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0 auto;
    transform: translateY(0);
    text-decoration: none; /* Remove underline */
    width: 100%;
    max-width: 250px;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-telegram:hover {
    background: #B844C0; /* Slightly darker red for hover effect */
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(210, 85, 217, 0.5); /* Red shadow */
    text-decoration: none; /* Ensure no underline on hover */
}

.btn-telegram:active {
    transform: translateY(-10px);
    text-decoration: none; /* Ensure no underline on active state */
}

.btn-telegram i {
    color: #ffffff; /* White icon */
}

.telegram-text {
    color: #ffffff; /* White text */
    font-weight: bold; /* Make it bold for emphasis */
}

.telegram-btn i {
    font-size: 18px;
}

/* Signal Button - Legacy */
.btn-signal {
    background: #D255D9; /* Red color */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0 auto;
    transform: translateY(0);
    text-decoration: none; /* Remove underline */
    width: 100%;
    max-width: 250px;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-signal:hover {
    background: #B844C0; /* Slightly darker red for hover effect */
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(210, 85, 217, 0.5); /* Red shadow */
    text-decoration: none; /* Ensure no underline on hover */
}

.btn-signal:active {
    transform: translateY(-10px);
    text-decoration: none; /* Ensure no underline on active state */
}

.btn-signal i {
    color: #ffffff; /* White icon */
}

.signal-text {
    color: #ffffff; /* White text */
    font-weight: bold; /* Make it bold for emphasis */
}

/* Deep Web Access Button */
.deep-web-access {
    text-align: center;
    margin-top: 15px;
}

.deep-web-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #6c5ce7;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #6c5ce7;
    cursor: pointer;
}

.deep-web-btn:hover {
    background: #5d4de0;
    transform: translateY(-1px);
}

.deep-web-btn i {
    font-size: 18px;
}

/* Deep Web Modal */
.deep-web-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    display: none !important;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

/* Ensure the specific support modal is always hidden by default */
#supportModal {
    display: none !important;
}

/* Ensure the support modal is visible when displayed */
#supportModal[style*='flex'] {
    display: flex !important;
}

/* Override any other display settings when modal should be visible */
.modal:target,
.modal[style*='display: flex'],
.modal[style*='display:flex'] {
    display: flex !important;
}

.modal-content {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 16px; /* Slightly more rounded corners for a cleaner look */
    padding: 30px; /* More padding for a cleaner look */
    width: 90%;
    max-width: 500px; /* Smaller max-width for a cleaner, more focused modal */
    position: relative;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Add subtle shadow for depth */
}

.modal-content h2 {
    font-size: 24px; /* Slightly smaller for a cleaner look */
    font-weight: 600; /* Slightly lighter weight */
    margin-bottom: 15px; /* Less margin for a cleaner look */
    color: #ffffff;
    text-align: center;
}

.close {
    color: #888888; /* Slightly lighter color for better visibility */
    float: right;
    font-size: 32px; /* Slightly larger for better visibility */
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px; /* Fixed width for consistent hit area */
    height: 30px; /* Fixed height for consistent hit area */
    display: flex; /* Flexbox for perfect centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    border-radius: 50%; /* Circular shape */
    transition: all 0.2s ease; /* Smooth transition */
}

.close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
    transform: scale(1.1); /* Slight scale effect on hover */
}

.deep-web-modal {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #333333;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888888;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    max-height: 55vh;
    overflow-y: auto;
    text-align: center;
    padding: 20px 10px; /* More padding for a cleaner look */
    box-sizing: border-box;
    color: #cccccc;
}

.modal-body p {
    margin-bottom: 20px; /* Increase margin for better spacing */
    line-height: 1.6; /* Slightly more line height for readability */
    font-size: 16px; /* Slightly larger font for better readability */
}

.modal-body ol {
    margin: 16px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-body a {
    color: #D255D9;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body strong {
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.modal-btn.secondary {
    background: #333333;
    color: #ffffff;
}

.modal-btn.secondary:hover {
    background: #444444;
}

.modal-btn.primary {
    background: #6c5ce7;
    color: #ffffff;
}

.modal-btn.primary:hover {
    background: #5d4de0;
    transform: translateY(-2px);
}
