/* --- register.css — Classic, clean, light color palette — mirrors login.css --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: #f5f3ef;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.register-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ─────────────────────────────────────
   LEFT SIDE IMAGE SECTION
───────────────────────────────────── */

.register-image-side {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
}

.register-image-side .logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    mix-blend-mode: screen;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: floatImage 5s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.register-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.register-image-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-brand-logo {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .register-image-side {
        padding: 30px;
    }
    
    .register-image-side .logo-img {
        max-width: 400px;
    }
    
    .register-brand-logo {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .register-image-side {
        padding: 20px;
        min-height: 50vh;
    }
    
    .register-image-side .logo-img {
        max-width: 300px;
    }
    
    @keyframes floatImage {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
        100% { transform: translateY(0px); }
    }
}

/* ─────────────────────────────────────
   RIGHT SIDE FORM SECTION
───────────────────────────────────── */

.register-form-side {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    min-height: 100vh;
}

.register-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 0 2rem 0;
}

/* Classic card style */
.register-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
    padding: 1.5rem 2rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    font-size: 2.8rem;
    color: #3c6b47;
    background: #eef3ea;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 12px rgba(60, 107, 71, 0.08);
}

.register-title {
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #2c2b28;
    margin-bottom: 0.35rem;
    font-family: 'Playfair Display', 'Inter', serif;
}

.register-subtitle {
    font-size: 0.95rem;
    color: #6c6a66;
    font-weight: 400;
    border-bottom: 1px solid #e9e6e0;
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Alert messages */
.alert-message {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid;
}

.error-alert {
    background-color: #fff7f5;
    color: #bc5a3c;
    border-left-color: #e06c3c;
}

.error-alert i {
    color: #e06c3c;
    font-size: 1.2rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.error-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-alert ul li {
    margin-bottom: 0.2rem;
}

.error-alert ul li:last-child {
    margin-bottom: 0;
}

/* Two-column row */
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

/* Form groups */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-light {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #5a5854;
}

.form-hint {
    font-size: 0.78rem;
    color: #9a9690;
    margin-top: 0.4rem;
    display: block;
}

.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

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

.form-control-light {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: 0.95rem;
    background: #fefcf8;
    border: 1px solid #e3dfd8;
    border-radius: 60px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    color: #2b2a27;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-control-light:focus {
    border-color: #b7c9b0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 145, 95, 0.1);
}

.form-control-light.is-invalid {
    border-color: #e06c3c;
}

.form-control-light.is-valid {
    border-color: #40916c;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8b8780;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #3c6b47;
}

/* Password strength bar */
.strength-bar-wrap {
    height: 4px;
    background: #ede9e3;
    border-radius: 999px;
    margin-top: 0.55rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Password match feedback */
.password-match-msg {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
    min-height: 1rem;
}

.match-ok {
    color: #2d6a4f;
}

.match-fail {
    color: #bc5a3c;
}

/* Terms checkbox */
.terms-row {
    margin-bottom: 1.75rem;
}

.checkbox-classic {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b4945;
    position: relative;
    line-height: 1.45;
}

.checkbox-classic input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #fefcf8;
    border: 1.5px solid #cfcbc4;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.15s;
    margin-top: 2px;
}

.checkbox-classic input:checked~.checkmark {
    background-color: #3c6b47;
    border-color: #3c6b47;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.checkbox-text a {
    color: #3c6b47;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.checkbox-text a:hover {
    border-bottom-color: #3c6b47;
    color: #2c5238;
}

/* Submit button */
.register-btn {
    width: 100%;
    background: #2f3e2e;
    color: white;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.register-btn i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.register-btn:hover {
    background: #1f2c1e;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(47, 62, 46, 0.15);
}

.register-btn:hover i {
    transform: translateX(2px);
}

.register-btn:active {
    transform: translateY(1px);
}

/* Footer */
.register-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid #edeae3;
    padding-top: 1.5rem;
}

.register-footer p {
    font-size: 0.9rem;
    color: #5b5954;
}

.login-link {
    font-weight: 600;
    color: #3c6b47;
    text-decoration: none;
    margin-left: 0.2rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.login-link:hover {
    border-bottom-color: #3c6b47;
    color: #2c5238;
}

.register-footer-note {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    color: #aca9a2;
    font-weight: 400;
}

/* Disable conflicting original styles */
.site-wrap,
.site-mobile-menu,
.login-hero,
.box,
.navbar,
.hero-bg {
    all: unset;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */

@media (max-width: 991px) {
    .register-image-side {
        display: none;
    }

    .register-form-side {
        min-height: 100vh;
    }
}

@media (max-width: 620px) {
    .form-row-split {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 1.8rem 1.3rem;
    }

    .register-title {
        font-size: 1.6rem;
    }

    .brand-icon {
        width: 58px;
        height: 58px;
        font-size: 2rem;
    }

    .form-control-light {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
}