* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000000;
    color: #ffffff;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #1a1a1a;
    z-index: 100;
}

.header .logo svg {
    height: 42px;
    fill: #ffffff;
}

.header .help-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000000;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 120px;
}

.login-box {
    background-color: transparent;
    padding: 0;
    width: 400px;
    max-width: 90%;
    text-align: center;
    color: #ffffff;
    margin: 0 auto;
}

.login-box h1 {
    margin-bottom: 32px;
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

.tabs {
    display: flex;
    margin-bottom: 24px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
    justify-content: space-between;
}

.tab-button {
    flex: 1;
    padding: 16px 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 400;
    white-space: nowrap;
}

.tab-button.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    font-weight: 500;
}

.tab-button:not(.active):hover {
    color: rgba(255, 255, 255, 0.8);
}

form {
    width: 100%;
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.5;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.input-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.forgot-password {
    display: block;
    text-align: left;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: rgba(255, 255, 255, 0.9);
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
    font-family: inherit;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.login-button:active {
    background-color: rgba(255, 255, 255, 0.25);
}

.login-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-link {
    margin-top: 0;
    font-size: 14px;
}

.back-link a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    font-size: 14px;
}

.back-link a:hover {
    opacity: 0.7;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
    position: fixed;
    bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    background-color: #1a1a1a;
    z-index: 100;
}

.footer .language-selector {
    order: 1;
}

.footer .signup-link {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.footer .signup-link a {
    color: #fe2c55;
    text-decoration: none;
    font-weight: 500;
}

.footer .copyright {
    order: 3;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer .language-selector button {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.footer .language-selector button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}
