/* Main layout styles */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left side trading view styles */
.left-side {
    flex: 1;
    background-color: #000;
    color: white;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /*gap: 3.5rem;*/
}

.trading-header {
    width: 100%;
    max-width: 680px;
    text-align: left;
}

.trading-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.75rem;
    color: #fff;
    line-height: 1.1;
}

.trading-header p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 3.5rem;
}

.platform-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: #00c087;
    font-size: 1.5rem;
}

.feature-item span {
    color: #fff;
    font-size: 1.1rem;
}

/* Platform stats */
.platform-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #00c087;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #888;
    white-space: nowrap;
}

/* Platform description */
.platform-description {
    margin-bottom: 2rem;
    width: 100%;
}

.platform-description p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.75rem;
}

.platform-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.platform-description li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #888;
    font-size: 1.15rem;
}

.platform-description li::before {
    content: "•";
    color: #00c087;
    font-size: 1.75rem;
}

/* Mobile device frame */
.mobile-frame {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 16px;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mobile-screen {
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    height: 100%;
}

/* Trading interface */
.trading-interface {
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trading-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pair-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pair-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.trading-actions {
    display: flex;
    gap: 15px;
}

.trading-chart {
    flex: 1;
    margin: 1rem 0;
    position: relative;
}

.trading-chart canvas {
    width: 99% !important;
    height: 100% !important;
}

.price-info {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.price-change {
    font-size: 1rem;
    color: #00c087;
}

.chart-controls {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.chart-control {
    padding: 6px 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
}

.chart-control.active {
    background: rgba(0, 192, 135, 0.2);
    color: #00c087;
}

/* Right column styles */
.right-side {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* Trading information section */
.trade-info {
    max-width: 100%;
    margin-bottom: 2rem;
}

.trade-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trade-info p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.trade-info img {
    max-width: 100%;
    height: auto;
}

/* Telegram group section */
.telegram-group {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
}

.telegram-group p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

/* Login form container */
.login-form {
    width: 100%;
    max-width: 400px;
}

/* Login tabs */
.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.login-tab {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #495057;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-tab:hover {
    color: #000;
}

.login-tab.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Password field specific styles */
.password-field {
    position: relative;
    width: 100%;
}

.password-field .form-control {
    padding-right: 2.5rem;
    margin: 0;
    height: auto;
}

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

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

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input field styles */
.input-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    font-size: 0.95rem;
    font-weight: 500;
}

.input-field input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.input-field input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: #fff;
    outline: none;
}

/* Button styles */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: #000;
    color: white;
}

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

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

/* Social login options */
.login-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.oauth-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.oauth-btn img {
    width: 24px;
    height: 24px;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin: 1rem 0 1.5rem;
}

.forgot-password a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: #000;
}

/* Sign up link */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.signup-link a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Custom text container */
.custom-text-container {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    white-space: pre-line;
}

.custom-text-container p {
    margin: 0.5rem 0;
}

/* Custom content styles following BEM methodology with nz- prefix */
.nz-custom-content {
    max-width: 800px;
    margin: 2rem auto;
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

.nz-custom-content--login {
    padding: 2rem;
}

.nz-custom-content__heading {
    color: #00c087;
    margin-bottom: 1.5rem;
}

.nz-custom-content__text {
    margin-bottom: 1rem;
}

.nz-custom-content__list {
    list-style: none;
    padding-left: 0;
}

.nz-custom-content__list-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.nz-custom-content__list-item:before {
    content: "•";
    color: #00c087;
    position: absolute;
    left: 0;
    top: 0;
}

.nz-custom-content__link {
    color: #00c087;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nz-custom-content__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Add support for custom modifiers */
.nz-custom-content--centered {
    text-align: center;
}

.nz-custom-content--dark {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.nz-custom-content--light {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.kr_lang_select {
    position: relative;
    cursor: pointer;
}

.kr_lang_select > div {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.kr_lang_select > div:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
}

.kr_lang_select > div img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.kr_lang_select > div span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.kr_lang_select ul {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 8px 0;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}

.kr_lang_select ul::-webkit-scrollbar {
    width: 6px;
}

.kr_lang_select ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.kr_lang_select ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.kr_lang_select ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.kr_lang_select ul li {
    margin: 1px 8px;
}

.kr_lang_select ul li a {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.kr_lang_select ul li a:hover {
    background: #2a2a2a;
}

.kr_lang_select ul li img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.kr_lang_select ul li span {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .language-switcher {
        bottom: 15px;
        right: 15px;
    }

    .kr_lang_select > div {
        padding: 6px 12px;
    }

    .kr_lang_select > div img,
    .kr_lang_select ul li img {
        width: 18px;
        height: 18px;
    }

    .kr_lang_select > div span,
    .kr_lang_select ul li span {
        font-size: 13px;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .split-container {
        flex-direction: column;
        height: 100%;
    }

    .left-side {
        display: none !important;
        height: 0;
        padding: 0;
        overflow: hidden;
    }

    .right-side {
        flex: 1;
        width: 100vw;
        min-height: 100vh;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .login-form {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .login-tabs {
        margin-bottom: 1.5rem;
    }

    .tab-content {
        margin-top: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-control {
        font-size: 16px;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-next {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
        margin-top: 1rem;
    }

    .forgot-password {
        text-align: right;
        margin: 1rem 0;
    }

    .signup-prompt {
        text-align: center;
        margin-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .language-switcher {
        bottom: 10px;
        right: 10px;
    }
}

@media screen and (max-width: 375px) {
    .right-side {
        padding: 1rem;
    }

    .login-form {
        padding: 0 0.5rem;
    }

    .form-control {
        padding: 0.625rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .login-tabs {
        margin-bottom: 1rem;
    }
}
