/* ========================================
   Sign-In Page Styles
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #4a7c59;
    --dark-green: #2d5a3d;
    --light-green: #6b9b7a;
    --accent-red: #d32f2f;
    --gold: #c9a961;
    --cream: #f5f1e8;
    --brown: #8b6914;
    --text-dark: #333;
    --text-gray: #666;
}

body {
    font-family: 'DB Heavent', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Sign-In Page Layout
   ======================================== */
.signin-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('https://thewhiterehab.com/media/index/header-background.avif') center / cover no-repeat;
    padding: 40px 20px;
}

.signin-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(45, 90, 61, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================================
   Sign-In Card
   ======================================== */
.signin-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 44px 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    border-top: 4px solid var(--primary-green);
}

/* ========================================
   Logo
   ======================================== */
.signin-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.signin-logo img {
    /* height: 90px; */
    width: auto;
    /* filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12)); */
}

/* ========================================
   Title Group
   ======================================== */
.signin-title-group {
    text-align: center;
    margin-bottom: 28px;
}

.signin-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.signin-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* ========================================
   Error Message
   ======================================== */
.signin-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-left: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 15px;
    color: #b71c1c;
    line-height: 1.5;
}

.signin-error i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 16px;
}

/* ========================================
   Form
   ======================================== */
.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 7px;
}

.form-label i {
    color: var(--primary-green);
    font-size: 14px;
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'DB Heavent', sans-serif;
    border: 1.5px solid #d4ddd7;
    border-radius: 8px;
    background: #f9fbf9;
    color: var(--text-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.form-input::placeholder {
    color: #aab8b0;
    font-size: 15px;
}

/* Password wrapper */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-green);
}

/* ========================================
   Submit Button
   ======================================== */
.signin-btn {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    font-size: 18px;
    font-family: 'DB Heavent', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(to bottom, #a6d391 10%, #30a656 50%, #4a7c59 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.5px;
}

.signin-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.signin-btn:active {
    transform: translateY(0);
    opacity: 1;
}

.signin-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Footer Note
   ======================================== */
.signin-footer-note {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: #9aab9f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.signin-footer-note i {
    color: var(--primary-green);
    font-size: 13px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 520px) {
    .signin-card {
        padding: 36px 24px 32px;
    }

    .signin-title {
        font-size: 24px;
    }

    .signin-logo img {
        height: 100%;
    }
}
