@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #057a55;
    --primary-hover: #046c4e;
    --primary-light: rgba(5, 122, 85, 0.08);
    --bg-left: #f6f3eb;
    --bg-right: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-gray: #d1d5db;
    --input-bg: #f9fafb;
}

body.reference-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-right);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.reference-auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* LEFT COLUMN - GRAPHIC PANEL */
.reference-left-panel {
    width: 65%;
    background-color: var(--bg-left);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Wavy background mask at the bottom */
.reference-bottom-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 1;
    pointer-events: none;
}

/* Overlapping image layout container */
.reference-image-container {
    position: relative;
    width: 580px;
    height: 480px;
    margin: auto;
    z-index: 2;
}

/* Dotted patterns */
.reference-dot-grid {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.reference-dot-grid-red {
    bottom: -10px;
    left: -20px;
    background-image: radial-gradient(#e57373 2.5px, transparent 2.5px);
    background-size: 16px 16px;
    opacity: 0.7;
}

.reference-dot-grid-green {
    top: 50px;
    right: -20px;
    background-image: radial-gradient(var(--primary-color) 2.5px, transparent 2.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

/* Image Frames */
.reference-img-frame {
    position: absolute;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background-color: #ffffff;
    padding: 8px;
    box-sizing: border-box;
}

.reference-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-frame-tall {
    width: 270px;
    height: 390px;
    top: 0;
    left: 40px;
    border-radius: 135px 135px 0 135px;
}

.reference-frame-tall img {
    border-radius: 127px 127px 0 127px;
}

.reference-frame-wide {
    width: 310px;
    height: 310px;
    bottom: 30px;
    right: 40px;
    border-radius: 0 155px 155px 155px;
}

.reference-frame-wide img {
    border-radius: 0 147px 147px 147px;
}

/* Floating White Branding Card */
.reference-floating-card {
    position: absolute;
    bottom: 60px;
    left: 20px;
    background: #ffffff;
    border-radius: 30px;
    padding: 24px 36px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    z-index: 10;
    max-width: 380px;
}

.reference-floating-card-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.reference-floating-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

/* Footer Copyright */
.reference-footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 2;
    margin-top: 20px;
}

/* RIGHT COLUMN - FORM PANEL */
.reference-right-panel {
    width: 35%;
    background-color: var(--bg-right);
    border-left: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.reference-form-container {
    width: 100%;
    max-width: 360px;
}

/* Logo section */
.reference-logo-circle {
    width: 100px;
    height: 100px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.reference-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.reference-brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* Form Styles */
.reference-form-group {
    margin-bottom: 22px;
}

.reference-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.reference-input-wrapper {
    position: relative;
}

.reference-form-control {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--input-bg);
    border: 1.5px solid var(--border-gray);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.reference-form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 122, 85, 0.12);
    outline: none;
}

.reference-form-control::placeholder {
    color: #9ca3af;
}

.reference-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0;
}

.reference-password-toggle:hover {
    color: var(--text-dark);
}

/* Checkbox & Actions */
.reference-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -6px;
    margin-bottom: 26px;
}

.reference-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.reference-checkbox-input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.reference-checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.reference-forgot-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Action button */
.reference-btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 122, 85, 0.15);
}

.reference-btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 122, 85, 0.3);
}

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

/* Custom Alerts */
.reference-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.reference-alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.reference-alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.reference-alert ul {
    margin: 0;
    padding-left: 16px;
}

/* Secondary footer links */
.reference-footer-links {
    margin-top: 26px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

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

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    .reference-left-panel {
        display: none !important;
    }
    .reference-right-panel {
        width: 100% !important;
        border-left: none !important;
        padding: 40px 24px;
    }
}
