
:root {
    --primary: #22a84a;
    --primary-dark: #166534;
    --primary-light: #98FB98;
    --primary-pale: #f0fff4;
    --accent: #4ade80;
    --text-dark: #14532d;
    --text-medium: #15803d;
    --text-muted: #86efac;
    --border: #bbf7d0;
    --border-focus: #4ade80;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(34, 168, 74, 0.1);
    --shadow-md: 0 8px 24px rgba(34, 168, 74, 0.14);
    --shadow-lg: 0 20px 48px rgba(20, 83, 45, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f0fff4 0%, #dcfce7 50%, #f0fff4 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.bg-photo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/dist/images/bgImage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px) saturate(0.6) brightness(1.05) contrast(0.95);
    transform: scale(1.03);
    pointer-events: none;
    z-index: -2;
}

.bg-photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 255, 246, 0.4) 45%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Decorative blobs */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(152, 251, 152, 0.35) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    width: 100%;
    max-width: 460px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(152, 251, 152, 0.5);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 56px rgba(20, 83, 45, 0.22);
}

/* Card header with pale-green gradient */
.card-header {
    background: linear-gradient(160deg, #e8ffe8 0%, #f0fff4 55%, #dcfce7 100%);
    padding: 32px 24px 22px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Decorative accent bar at bottom of header */
.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 2px;
}

.logo-container {
    margin-bottom: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 18px rgba(34, 168, 74, 0.2);
    border: 3px solid rgba(152, 251, 152, 0.7);
}

.logo-img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.login-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.login-subtitle {
    color: var(--text-medium);
    font-size: 0.83rem;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.card-body {
    padding: 26px 30px 28px;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
    font-size: 0.88rem;
}

.form-control {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    font-size: 0.93rem;
    transition: all 0.25s ease;
    background: #fafffe;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(152, 251, 152, 0.4);
    background: white;
    outline: none;
}

.form-control::placeholder {
    color: #a7d9b4;
    font-size: 0.9rem;
}

/* Login button */
.btn-success {
    background: linear-gradient(135deg, #4ade80 0%, #22a84a 60%, #16a34a 100%);
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 16px rgba(34, 168, 74, 0.4);
    font-family: 'Poppins', sans-serif;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #22a84a 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.48);
    color: white;
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.87rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.create-account {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.create-account:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    font-weight: 500;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.alert-success {
    background: rgba(152, 251, 152, 0.25);
    border: 1px solid rgba(34, 168, 74, 0.3);
    color: var(--primary-dark);
}

.footer-text {
    font-size: 0.76rem;
    color: #86efac;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Modal */
.modal-content {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(152, 251, 152, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #4ade80 0%, #22a84a 100%);
    color: white;
    border-top-left-radius: calc(var(--radius) - 1px);
    border-top-right-radius: calc(var(--radius) - 1px);
    padding: 16px 20px;
    border-bottom: none;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-weight: 600;
    font-size: 0.98rem;
}

/* Icon inputs */
.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    color: #86efac;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-container:focus-within .input-icon {
    color: var(--primary);
}

.icon-input {
    padding-left: 42px;
}
