:root {
    --font-main: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Symbols";
    --headline-color: #ffffff;
    --form-background: #313338;
    --normal-text-color: #b5bac1;
    --input-bg: #1e1f22;
    --input-color: #dbdee1;
    --label-color: #b5bac1;
    --required-color: #f23f43;
    --btn-bg: #5865f2;
    --btn-bg-hover: #4752c4;
    --link-color: #00a8fc;
    --need-account: #949ba4;
}

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

@font-face {
    font-family: "gg sans";
    font-style: normal;
    font-weight: 400;
    src: url(./assets/fonts/ggsans/ggsans-normal.woff2) format("woff2");
}

@font-face {
    font-family: "gg sans";
    font-style: normal;
    font-weight: 500;
    src: url(./assets/fonts/ggsans/ggsans-medium.woff2) format("woff2");
}

@font-face {
    font-family: "gg sans";
    font-style: normal;
    font-weight: 600;
    src: url(./assets/fonts/ggsans/ggsans-semibold.woff2) format("woff2");
}

@font-face {
    font-family: "gg sans";
    font-style: normal;
    font-weight: 700;
    src: url(./assets/fonts/ggsans/ggsans-bold.woff2) format("woff2");
}

/* Background */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ============================================
   DISCORD LOGO POSITION - CHANGE HERE
   ============================================ */
.bg-logo {
    position: fixed;
    top: 24px;
    left: 80px;  /* <-- CHANGE THIS VALUE TO MOVE LEFT/RIGHT */
    z-index: 1;
}

.bg-logo img {
    height: 24px;
    width: auto;
}
/* ============================================ */

body {
    font-family: var(--font-main);
    line-height: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    user-select: none;
    min-height: 100vh;
}

h1, p {
    line-height: 1.25;
}

h1 {
    font-weight: 600;
    font-size: 24px;
    color: var(--headline-color);
}

h2 {
    color: var(--headline-color);
    font-size: 24px;
    font-weight: 600;
}

p {
    line-height: 20px;
    color: var(--normal-text-color);
    font-size: 16px;
    font-weight: 400;
}

input {
    background: var(--input-bg);
    font-family: inherit;
    color: var(--input-color);
    border-radius: 3px;
    padding: 10px;
    border: none;
    outline: none;
    height: 40px;
    font-size: 16px;
    width: 100%;
}

input:focus {
    outline: none;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Main Layout */
.main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Box */
.authBox {
    background: var(--form-background);
    width: 784px;
    max-width: 100%;
    padding: 32px;
    border-radius: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 32px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}

/* Main Form */
.main-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.main-form-header h1 {
    margin-bottom: 8px;
}

.main-form form {
    display: flex;
    flex-direction: column;
}

.input-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-wrapper,
.password-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-wrapper label,
.password-wrapper label {
    color: var(--label-color);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
}

.required {
    color: var(--required-color);
}

.forgot-password {
    margin-top: 4px;
    margin-bottom: 20px;
}

.forgot-password a {
    font-size: 14px;
}

.login {
    margin-bottom: 8px;
}

.login button {
    width: 100%;
    background: var(--btn-bg);
    color: #fff;
    padding: 2px 16px;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
    height: 44px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.17s ease;
}

.login button:hover {
    background: var(--btn-bg-hover);
}

.small-register {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.small-register span {
    color: var(--need-account);
}

/* Right Section - QR Code */
.right-section {
    display: flex;
    align-items: center;
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.login-container {
    text-align: center;
    width: 240px;
}

.qr-code {
    width: 176px;
    height: 176px;
    background: white;
    border-radius: 8px;
    margin: 0 auto 32px;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code .qr-image {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    object-fit: contain;
}

/* ============================================
   QR CODE DISCORD LOGO - MOVED UP
   ============================================ */
.qr-code .qr-logo {
    position: absolute;
    top: 45%;  /* <-- Changed from 50% to 45% to move up */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: transparent;  /* <-- Removed white background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code .qr-logo svg {
    width: 100%;
    height: 100%;
}
/* ============================================ */

.login-container h2 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 30px;
}

.login-container p {
    font-size: 16px;
    line-height: 20px;
}

.login-container p strong {
    font-weight: 600;
}

.login-container > a {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 830px) {
    .authBox {
        flex-direction: column;
        width: calc(100% - 20px);
        max-width: 480px;
        padding: 24px;
    }
    
    .right-section {
        display: none;
    }
    
    .bg-logo {
        top: 16px;
        left: 24px;  /* Slightly less on mobile */
    }
    
    .bg-logo img {
        height: 20px;
    }
}

@media (max-width: 500px) {
    .authBox {
        padding: 20px;
    }
    
    .main-form-header h1 {
        font-size: 20px;
    }
    
    .main-form-header p {
        font-size: 14px;
    }
}
