* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.header {
    position: absolute;
    top: 32px;
    left: 52px;
}

.logo {
    width: 160px;
    height: auto;
}

/* Main */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Card */
.login-card {
    background-color: transparent;
    border-radius: 16px;
    padding: 48px 48px 48px 48px;
    width: 100%;
    max-width: 650px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.2;
}

.subtitle {
    font-size: 15px;
    color: #5e6369;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Field groups */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #5e6369;
    margin-bottom: 8px;
}

/* Input wrapper */
.input-wrapper {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5e6369;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    pointer-events: none;
}

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5e6369;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.text-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background-color: #f1f5f9;
    color: #333333;
    font-family: "Montserrat", sans-serif;
    transition: all 0.25s ease;
}

.text-input::placeholder {
    color: #aab0bb;
}

.text-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #d25e00;
}

/* Password field has right padding for the eye icon */
.text-input.has-suffix {
    padding-right: 42px;
}

/* Forgot password link */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.forgot-link {
    font-size: 14px;
    color: #d25e00;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #b84e00;
    text-decoration: underline;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 15px 24px;
    background-color: #d25e00;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    margin-top: 28px;
    transition: background-color 0.25s ease;
    letter-spacing: 0.01em;
}

.login-btn:hover {
    background-color: #b84e00;
}

.login-btn:active {
    background-color: #a04400;
}

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 1024px) {
    .header {
        top: 28px;
        left: 36px;
    }

    .login-card {
        max-width: 560px;
        padding: 44px 40px;
    }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 768px) {
    .header {
        top: 20px;
        left: 24px;
    }

    .logo {
        width: 130px;
    }

    .login-card {
        padding: 36px 28px;
        max-width: 100%;
        margin: 0 16px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 15px;
        margin-top: 24px;
        min-height: 48px;
    }
}

/* ── RESPONSIVE: SMALL MOBILE ── */
@media (max-width: 480px) {
    .header {
        top: 16px;
        left: 16px;
    }

    .logo {
        width: 110px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 12px;
        margin: 60px 12px 12px;
    }

    h1 {
        font-size: 24px;
    }

    .text-input {
        font-size: 14px;
        padding: 12px 16px 12px 40px;
    }

    .forgot-link {
        font-size: 13px;
    }
}

/* Validation error message */
.field-error {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #e21c1c;
}
