:root {
    --dark: #0d3022;
    --green: #145b3b;
    --accent: #218653;
    --ink: #172a40;
    --muted: #64748b;
    --line: #dce5ee;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        135deg, #0d3022, #145b3b
    );
    color: white;
}

.login-layout {
    width: min(1100px, 92%);
    margin: auto;
    padding: 45px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 85px;
}

.system-label {
    font-size: 15px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #b6dfc9;
}

.intro h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 22px 0;
}

.intro p {
    color: #d1e7da;
    line-height: 1.8;
    font-size: 16px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.features span {
    padding: 14px;
    border: 1px solid #ffffff30;
    border-radius: 9px;
    background: #ffffff0b;
    font-size: 13px;
}

.login-card {
    background: white;
    color: var(--ink);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px #00000030;
}

.brand-logo {
    display: block;
    width: min(250px, 85%);
    height: 105px;
    object-fit: contain;
    margin: 0 auto 22px;
}

h2 {
    text-align: center;
    font-size: 25px;
    margin: 0;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 18px 0 9px;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #fafcfd;
    color: var(--ink);
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #21865318;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 85px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-weight: 600;
}

.login-button {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

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

.login-button:disabled {
    opacity: .65;
    cursor: wait;
}

.error-message {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 7px;
    margin-top: 15px;
    font-size: 14px;
}

.security-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 25px;
}

footer {
    padding: 20px;
    text-align: center;
    color: #b6dfc9;
    font-size: 12px;
}

@media(max-width: 800px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 24px;
        padding: 25px 0;
    }

    .intro {
        text-align: center;
    }

    .intro h1 {
        font-size: 27px;
    }

    .intro p,
    .features {
        display: none;
    }

    .login-card {
        padding: 28px;
    }
}

/* Merkezi giris ekrani */
.login-layout {
    width: min(440px, 92%);
    flex: 1;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    padding: 38px;
    border-radius: 20px;
}

.brand-logo {
    width: min(240px, 85%);
    height: 100px;
    margin-bottom: 22px;
}

footer {
    flex-shrink: 0;
    padding: 15px;
}

@media(max-width: 480px) {
    .login-card {
        padding: 26px;
    }

    .login-layout {
        padding: 20px 0;
    }

    h2 {
        font-size: 23px;
    }
}
