* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(35, 32, 28, 0.62), rgba(35, 32, 28, 0.42)),
        url('/images/bg.png') center center / cover no-repeat;
    color: #2d2a26;
}

body.login-page {
    justify-content: center;
}

body.login-page .page-body {
    flex: none;
    padding: 20px 20px;
}

@media (min-width: 768px) {
    body.form-page {
        justify-content: center;
    }

    body.form-page .page-body {
        flex: none;
        padding: 20px 20px;
    }
}

.site-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3.2vmin, 44px) 20px clamp(8px, 2.2vmin, 24px);
}

.site-header img {
    height: clamp(54px, 8vmin, 150px);
    width: auto;
}

.login-header {
    padding: clamp(16px, 3.5vmin, 52px) 20px clamp(10px, 2.2vmin, 28px);
}

.login-header img {
    height: clamp(70px, 9.3vmin, 200px);
}

.page-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 60px;
}

.card {
    background: #ffffff;
    border: 1px solid #efece5;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(93, 76, 47, 0.18);
    max-width: 480px;
    width: 100%;
    padding: 44px 40px;
    animation: fadeUp 0.5s ease;
}

.login-card {
    max-width: 480px;
    padding: clamp(44px, 6vmin, 54px) clamp(40px, 5vmin, 48px);
}

.login-card .submit-btn {
    width: auto;
    min-width: 45%;
    display: block;
    margin: 10px auto 0;
    border-radius: 14px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phone / Android-width screens only */
@media (max-width: 767px) {
    .login-header {
        padding: clamp(40px, 8vmin, 56px) 20px clamp(20px, 4vmin, 30px);
    }

    .login-header img {
        height: clamp(105px, 17vmin, 160px);
    }

    .form-header {
        padding: clamp(38px, 9vmin, 60px) 20px clamp(10px, 3vmin, 26px);
    }

    .form-header img {
        height: clamp(98px, 16vmin, 148px);
    }

    .form-card {
        max-width: 400px;
        padding: clamp(6px, 2.5vmin, 38px) clamp(26px, 4.5vmin, 34px);
    }

    .form-card .form-group {
        margin-bottom: 12px;
    }
}

/* iPad-width screens only (portrait and landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-header {
        padding: clamp(140px, 17vmin, 200px) 20px clamp(18px, 3.6vmin, 38px);
    }

    .login-header img {
        height: clamp(130px, 17vmin, 270px);
    }

    .login-card {
        max-width: 600px;
        padding: clamp(56px, 6.6vmin, 70px) clamp(50px, 6vmin, 62px);
    }

    .login-card h1 {
        font-size: clamp(32px, 3.5vmin, 41px);
    }

    .login-card .subtitle {
        font-size: clamp(15px, 1.7vmin, 18px);
    }

    .login-card .form-group input {
        padding: clamp(15px, 1.9vmin, 19px) clamp(17px, 2.1vmin, 21px);
        font-size: clamp(15.5px, 1.8vmin, 18px);
    }

    .login-card .submit-btn {
        padding: clamp(17px, 1.9vmin, 20px);
        font-size: clamp(16.5px, 1.9vmin, 19px);
    }
}

/* MacBook / desktop-width screens */
@media (min-width: 1025px) {
    body.login-page .page-body {
        margin-bottom: clamp(0px, 7vmin, 70px);
    }

    .login-header {
        padding: clamp(55px, 9.5vmin, 130px) 20px clamp(11px, 2.9vmin, 32px);
    }

    .login-header img {
        height: clamp(72px, 11.8vmin, 275px);
    }

    .login-card {
        max-width: 560px;
        padding: clamp(20px, 3vmin, 64px) clamp(48px, 5vmin, 56px);
    }

    .login-card h1 {
        font-size: clamp(32px, 2.9vmin, 38px);
    }

    .login-card .subtitle {
        font-size: clamp(15px, 1.5vmin, 17.5px);
    }

    .login-card .form-group input {
        padding: clamp(15px, 1.7vmin, 18px) clamp(17px, 1.9vmin, 20px);
        font-size: clamp(15.5px, 1.6vmin, 17.5px);
    }

    .login-card .submit-btn {
        padding: clamp(17px, 1.7vmin, 19px);
        font-size: clamp(16.5px, 1.7vmin, 18px);
    }
}

/* Let's Connect (public form) - iPad-width screens only */
@media (min-width: 768px) and (max-width: 1024px) {
    .form-header {
        padding: clamp(20px, 4vmin, 48px) 20px clamp(4px, 1vmin, 12px);
    }

    .form-header img {
        height: clamp(105px, 13vmin, 200px);
    }
}

/* Let's Connect (public form) - MacBook / desktop-width screens */
@media (min-width: 1025px) {
    .form-header {
        padding: clamp(10px, 2.2vmin, 40px) 20px clamp(4px, 1vmin, 12px);
    }

    .form-header img {
        height: clamp(64px, 9.5vmin, 210px);
    }

    .form-card {
        max-width: 440px;
        padding: clamp(20px, 3vmin, 40px) clamp(30px, 3.6vmin, 36px);
    }

    .form-card h1 {
        font-size: clamp(24px, 2.4vmin, 30px);
        margin-bottom: 4px;
    }

    .form-card .subtitle {
        font-size: clamp(12.5px, 1.2vmin, 14.5px);
        margin-bottom: 16px;
    }

    .form-card .form-group {
        margin-bottom: 12px;
    }

    .form-card .form-group label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .form-card .form-group input {
        padding: clamp(9px, 1.1vmin, 14px) clamp(13px, 1.3vmin, 16px);
        font-size: clamp(13px, 1.2vmin, 15px);
    }

    .form-card .submit-btn {
        padding: clamp(11px, 1.1vmin, 16px);
        font-size: clamp(13.5px, 1.2vmin, 16px);
        margin-top: 4px;
    }
}

.card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #2d2a26;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

.card .subtitle {
    text-align: center;
    color: #8a8378;
    font-size: 14.5px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #5c574d;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e8e4da;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    background: #faf9f6;
    color: #2d2a26;
}

.form-group input::placeholder {
    color: #b5afa2;
}

.password-wrapper {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #b5afa2;
}

.toggle-password:hover {
    color: #6b8f71;
}

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

.form-group input:focus {
    border-color: #6b8f71;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 143, 113, 0.14);
}

.form-group input.error {
    border-color: #c96a5c;
    background: #fdf5f4;
}

.error-text {
    color: #c96a5c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6b8f71, #4f6f56);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 12px 25px -6px rgba(79, 111, 86, 0.5);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -6px rgba(79, 111, 86, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.required-note {
    text-align: center;
    font-size: 12px;
    color: #b5afa2;
    margin-top: 18px;
}

/* Thank you page */
.thankyou-card {
    text-align: center;
}

.checkmark {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b8f71, #4f6f56);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pop 0.5s ease;
    box-shadow: 0 12px 25px -6px rgba(79, 111, 86, 0.5);
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.checkmark svg {
    width: 44px;
    height: 44px;
    stroke: #fff;
}

.thankyou-card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    color: #2d2a26;
    margin-bottom: 12px;
}

.thankyou-card p {
    color: #8a8378;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.download-status {
    background: #f2f6f0;
    border: 1px solid #dbe7d6;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13px;
    color: #4f6f56;
    margin-bottom: 22px;
}

.manual-download {
    display: inline-block;
    color: #4f6f56;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #4f6f56;
}

.manual-download:hover {
    color: #2d2a26;
    border-color: #2d2a26;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .page-body {
        padding: 12px 14px 40px;
    }

    .card {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .card h1,
    .thankyou-card h1 {
        font-size: 23px;
    }

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

    .form-group input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    .checkmark {
        width: 72px;
        height: 72px;
    }

    .checkmark svg {
        width: 36px;
        height: 36px;
    }
}
