:root {
    --primary-color: #539462;
    --primary-hover: #43784f;
    --white: #ffffff;
    --bg-light: #f4f7f5;
    --text-dark: #2c3e50;
    --gray: #95a5a6;
}

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

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-name {
    font-family: 'Pacifico', cursive !important;
}

.login-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 4px; /* reduced from 8px */
}

.header-subtitle {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.welcome-text {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px; /* reduced from 25px */
}

.input-group {
    text-align: left;
    margin-bottom: 14px; /* slightly tighter between fields */
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px; /* added: space between label and input */
}

.status-msg {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.3s;
}

.status-msg.invalid {
    color: #dc2626;
}

.status-msg.valid {
    color: #059669;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(83, 148, 98, 0.1);
}

.login-btn,
.continue-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.login-btn:hover,
.continue-btn:hover {
    background: var(--primary-hover);
}

.login-btn:disabled,
.continue-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 12px;
    min-height: 20px;
    text-align: left;
}

.success-msg {
    color: #059669;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-align: left;
    font-weight: 500;
    padding: 10px;
    background: rgba(83, 148, 98, 0.1);
    border-radius: 8px;
    display: none;
}

hr {
    margin: 20px 0; /* reduced from 25px */
    border: 0;
    border-top: 1px solid #eee;
}

a {
    color: var(--primary-color);
    display: inline-block;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.register-section {
    text-align: center;
}

.register-section span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.register-btn {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.register-btn:hover {
    background: var(--primary-color);
    color: white;
}

.forgot-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
}

.forgot-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px; /* reduced from 25px */
    text-align: left;
}

.otp-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-digit {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.otp-digit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(83, 148, 98, 0.15);
}

.otp-digit.filled {
    border-color: var(--primary-color);
    background: rgba(83, 148, 98, 0.05);
}

.resend-section {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.resend-btn:hover {
    color: var(--primary-hover);
}

.resend-btn:disabled {
    color: var(--gray);
    cursor: not-allowed;
}

.back-link {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 0.82rem;
    cursor: pointer;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    text-decoration: none;
}

.back-link:hover {
    color: var(--text-dark);
}

.name-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.name-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.eye-btn:hover {
    color: var(--primary-color);
}

.form-footer {
    text-align: right;
    margin-top: 8px;
}

.forgot-link {
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}