/* X.com Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.x-login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #e7e9ea;
    min-height: 100vh;
    overflow-x: hidden;
}

.x-login-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Logo */
.x-login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.x-logo-large {
    width: 380px;
    height: 380px;
    fill: #e7e9ea;
}

/* Right Side - Forms */
.x-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
}

.x-login-content {
    max-width: 440px;
    width: 100%;
}

.x-login-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 84px;
    letter-spacing: -1.2px;
    margin-bottom: 48px;
    color: #e7e9ea;
}

.x-login-subtitle {
    font-size: 31px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 32px;
    color: #e7e9ea;
}

/* Buttons */
.x-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 24px;
    height: 40px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.x-btn-white {
    background-color: #5865F2;
    color: #ffffff;
    border: 1px solid #5865F2;
}

.x-btn-white:hover {
    background-color: #4752C4;
}

.x-btn-white svg {
    fill: #ffffff;
}

.x-btn-blue {
    background-color: #1d9bf0;
    color: #ffffff;
}

.x-btn-blue:hover {
    background-color: #1a8cd8;
}

.x-btn-outlined {
    background-color: transparent;
    color: #1d9bf0;
    border: 1px solid #536471;
}

.x-btn-outlined:hover {
    background-color: rgba(29, 155, 240, 0.1);
}

.x-btn-black {
    background-color: #eff3f4;
    color: #0f1419;
}

.x-btn-black:hover {
    background-color: #d7dbdc;
}

.x-btn-forgot {
    background-color: transparent !important;
    color: #eff3f4 !important;
    border: 1px solid #536471 !important;
    margin-top: 12px !important;
}

.x-btn-forgot:hover {
    background-color: rgba(239, 243, 244, 0.1) !important;
}

/* Divider */
.x-divider {
    display: flex !important;
    align-items: center !important;
    margin: 24px 0 !important;
    color: #71767b !important;
}

.x-divider::before,
.x-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #2f3336;
}

.x-divider span {
    padding: 0 16px;
    font-size: 15px;
}

/* Terms */
.x-terms {
    font-size: 11px;
    line-height: 12px;
    color: #71767b;
    margin-top: 8px;
}

.x-terms a {
    color: #1d9bf0;
    text-decoration: none;
}

.x-terms a:hover {
    text-decoration: underline;
}

/* Login Section */
.x-login-section {
    margin-top: 80px;
}

.x-already-account {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e7e9ea;
}

/* Modal */
.x-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(91, 112, 131, 0.4) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(4px) !important;
}

.x-modal.show {
    display: flex !important;
}

.x-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

.x-modal-content {
    position: relative !important;
    background-color: #000000 !important;
    border-radius: 16px !important;
    width: 600px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 40px 80px !important;
    z-index: 10 !important;
}

.x-modal-register {
    padding: 32px 80px;
}

.x-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e7e9ea;
    transition: background-color 0.2s;
}

.x-modal-close:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.x-modal-close svg {
    fill: currentColor;
}

.x-modal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 32px !important;
}

.x-modal-logo {
    width: 40px !important;
    height: 40px !important;
    fill: #e7e9ea !important;
    margin-bottom: 20px !important;
}

.x-modal-header h2 {
    font-size: 31px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    color: #e7e9ea !important;
    margin: 0 !important;
}

/* Form */
.x-form {
    margin: 32px auto 0 !important;
    max-width: 300px !important;
}

/* Buttons and divider centered */
.x-modal-content > .x-btn {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
}

.x-modal-content > .x-divider {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.x-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: transparent;
    border: 1px solid #333639;
    border-radius: 4px;
    color: #e7e9ea;
    font-size: 17px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.x-input:focus {
    outline: none;
    border-color: #1d9bf0;
}

.x-input::placeholder {
    color: #71767b;
}

.x-modal-footer {
    text-align: center !important;
    margin-top: 40px !important;
    font-size: 15px !important;
    color: #71767b !important;
}

.x-modal-footer a {
    color: #1d9bf0;
    text-decoration: none;
    margin-left: 4px;
}

.x-modal-footer a:hover {
    text-decoration: underline;
}

/* Form Errors */
.errors {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
    display: none;
}

.errors:not(:empty) {
    display: block;
}

.errors.error {
    background-color: #1d9bf0;
    color: #ffffff;
    font-weight: 400;
}

.errors.success {
    background-color: #00ba7c;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .x-login-left {
        display: none;
    }

    .x-login-right {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .x-login-title {
        font-size: 48px;
        line-height: 60px;
    }

    .x-login-subtitle {
        font-size: 24px;
        line-height: 32px;
    }

    .x-modal-content {
        padding: 32px 40px;
    }

    .x-modal-register {
        padding: 24px 32px;
    }
}

/* Footer */
.x-login-footer {
    padding: 12px 16px;
    margin-top: auto;
}

.x-login-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.x-login-footer a,
.x-login-footer span {
    font-size: 13px;
    color: #71767b;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.x-login-footer a:hover {
    text-decoration: underline;
}
