/* Modern Login UI for CityShop99 Health & Wellness */

body {
    background-color: #ffffff;
    /* plain white body */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Quicksand', sans-serif;
    color: #1f2937;
    position: relative;
    overflow-x: hidden;
}

.modern-login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.modern-login-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;

    background-color: #f0f7f4;
    background-image: url('../images/leaves_bg_pattern.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.top-back-btn {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 16px;
    text-decoration: none;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.top-back-btn:hover {
    color: #365f49;
    background: #f9fafb;
}

.brand-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.brand-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a2f24;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.brand-header h1 i {
    color: #365f49;
}

.brand-header p {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-left: 0;
}

.brand-header p::before,
.brand-header p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 1px;
    background: #9ca3af;
}

.brand-header p::before {
    left: -35px;
}

.brand-header p::after {
    right: -35px;
}



.modern-login-card {
    background: white;
    border-radius: 40px;
    padding: 55px 25px 30px;
    margin: 0 15px 20px 15px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-inner-form-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.modern-logo-badge {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #2c6e49;
    overflow: hidden;
}

.modern-logo-badge a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modern-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.modern-login-header {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 30px;
}

.modern-login-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a2f24;
    margin-bottom: 8px;
}

.modern-login-header p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.modern-login-header p span {
    color: #2c6e49;
    font-weight: 700;
}

.modern-input-group {
    margin-bottom: 22px;
}

.modern-input-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #2c3931;
    margin-bottom: 10px;
    padding-left: 5px;
}

.modern-input-wrapper {
    position: relative;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.01);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6px;
    transition: all 0.3s ease;
}

.modern-input-wrapper.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.modern-input-wrapper:focus-within {
    border-color: #365f49;
    box-shadow: 0 0 0 4px rgba(54, 95, 73, 0.1);
    background: #ffffff;
}

.modern-input-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c6e49;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    margin: 2px;
}

.modern-input-wrapper.is-invalid .modern-input-icon {
    color: #dc3545;
    background: #fff5f5;
}

.modern-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #1a2f24;
    outline: none;
    padding: 10px 0;
    width: 100%;
}

.modern-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.modern-password-toggle {
    padding: 0 18px 0 10px;
    color: #4b5563;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.modern-forgot {
    text-align: right;
    margin-bottom: 25px;
}

.modern-forgot a {
    color: #365f49;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.modern-forgot a:hover {
    color: #1e3a2a;
}

/* Primary Button */
.modern-btn-primary {
    width: 100%;
    background: #365f49;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 6px 15px rgba(54, 95, 73, 0.2);
}

.modern-btn-primary:hover {
    background: #2a4b39;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(54, 95, 73, 0.3);
}

.modern-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modern-btn-icon-left {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #365f49;
    font-size: 12px;
}

.modern-btn-icon-right {
    font-size: 16px;
}

/* Divider */
.modern-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.modern-divider::before,
.modern-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: #e5e7eb;
}

.modern-divider::before {
    left: 0;
}

.modern-divider::after {
    right: 0;
}

/* Outline Button */
.modern-btn-outline {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #365f49;
    border: 1.5px solid #365f49;
    border-radius: 25px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.modern-btn-outline:hover {
    background: #f4fbf9;
    color: #2c6e49;
}

/* Bottom Back to Browsing Button */
.bottom-back-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    background: transparent;
    border: none;
    padding: 10px 5px;
    cursor: pointer;
    width: 100%;
}

.bottom-back-btn:hover {
    color: #1f2937;
}

.bottom-back-btn i {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4b5563;
}

.invalid-feedback-modern {
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
    padding-left: 15px;
    font-weight: 600;
}

.modern-alert {
    background-color: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 20px;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
    margin-bottom: 20px;
    position: relative;
    line-height: 1.5;
}

.modern-alert strong {
    color: #7f1d1d;
    font-size: 15px;
}

.modern-alert .closebtn {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #991b1b;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    margin-top: 0 !important;
}

.modern-alert .closebtn:hover {
    color: #7f1d1d;
}