/* Custom CSS for frontend Auth flow */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* Master Layouts & Shared Elements */
body {
    font-family: "Instrument Sans", sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}
* {
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}
.logo {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #111;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-item {
    font-size: 0.875rem;
    color: #444;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-item:hover {
    color: #000;
}
.profile-btn {
    padding: 0 1rem;
    min-height: 35px;
    background-color: #fdf3e3;
    border-radius: 4px;
    font-weight: 400;
    color: #222;
    /* border: 1px solid #f8e3c3; */
    display: flex;
    align-items: center;
    gap: 6px;
        font-size: 14px;
}
.footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 300;
    margin-top: auto;
    flex-shrink: 0;
}

/* Two-column layout */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #fff;
}
.image-side {
    width: 40%;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}
.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.form-side {
    width: 60%;
    padding: 4rem 5%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}
.form-wrapper {
    width: 100%;
    max-width: 800px;
}

/* Login specific overrides for width */
.login-page .image-side {
    width: 50%;
}
.login-page .form-side {
    width: 50%;
    align-items: center;
}
.login-page .form-wrapper {
    max-width: 420px;
    padding: 2rem 0;
}

/* Typography & Titles */
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.5rem 0;
}
.page-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 300;
    margin: 0 0 3rem 0;
}
.login-page .page-subtitle {
    margin-bottom: 2.5rem;
}

/* Split layout on register individual */
.content-split {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.form-column {
    flex: 1;
}
.info-column {
    width: 320px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 2rem;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
.form-label span.optional {
    color: #999;
    font-weight: 300;
}

.input-wrapper {
    position: relative;
}
.form-input {
    width: 100%;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.form-input::placeholder {
    color: #aaa;
    font-weight: 300;
}
.form-input:focus {
    border-color: #c59c5f;
    box-shadow: 0 0 0 3px rgba(197, 156, 95, 0.1);
}
.form-input.is-invalid {
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15);
}
.form-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.25);
}
.icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.icon-right:hover {
    color: #111;
}

/* Warnings and Errors */
.error-message {
    color: #e11d48;
    font-size: 13px;
    font-weight: 400;
    margin-top: 8px;
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-left: 4px;
}
.caps-warning {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    animation: fadeIn 0.2s;
}

/* Password Strength Bar */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.strength-bar {
    height: 4px;
    flex: 1;
    background: #eaeaea;
    border-radius: 2px;
    transition: all 0.3s;
}
.strength-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

/* Checkbox design */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 2rem 0;
}
.checkbox-input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    accent-color: #111;
}
.checkbox-input.is-invalid {
    outline: 2px solid #ef4444;
}
.checkbox-label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-weight: 300;
}
.checkbox-label a {
    color: #c59c5f;
    text-decoration: none;
    font-weight: 600;
}
.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #c59c5f;
    text-decoration: none;
    font-weight: 400;
    margin-top: 0.5rem;
}
.forgot-link:hover {
    text-decoration: underline;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    min-height: 44px;
    padding: 0 1rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-submit:hover {
    background: #c59c5f;
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
    margin-right: 8px;
}
.check-anim {
    display: none;
    width: 18px;
    height: 18px;
    color: #fff;
    margin-right: 8px;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-weight: 300;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}
.auth-divider span {
    padding: 0 1rem;
}
.auth-divider a {
    color: #c59c5f;
    text-decoration: none;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #eaeaea;
    background: #fff;
    min-height: 44px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-social:hover {
    background: #fafafa;
    border-color: #ddd;
}

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 300;
}
.signup-link a {
    color: #c59c5f;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}
.signup-link a:hover {
    text-decoration: underline;
}

/* Info Box Styles */
.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    margin-bottom: 1.5rem;
    color: #111;
    transition: all 0.2s;
}
.info-column:hover .info-icon {
    border-color: #c59c5f;
    color: #c59c5f;
}
.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.5rem 0;
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    font-weight: 400;
    transition: color 0.2s;
}
.check-icon {
    margin-top: 2px;
    color: #111;
    flex-shrink: 0;
    transition: color 0.2s;
}
.info-column:hover .check-icon {
    color: #c59c5f;
}

/* Account Registration Select Cards */
.hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* overflow: hidden; */
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.95);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #111;
}
.hero-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 16px;
    color: #444;
    font-weight: 400;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 40px auto;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    padding: 3rem;
    border: 1px solid #eaeaea;
    text-align: center;
}
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}
.card {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    background: #fff;
    cursor: pointer;
}
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    background: #fafafa;
    color: #111;
    transition: all 0.2s;
}
.card:hover .icon-wrapper {
    background: #fdf3e3;
    color: #c59c5f;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    border-color: #c59c5f;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #111;
}
.card-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 40px;
    font-weight: 300;
}
.divider {
    height: 1px;
    background-color: #f0f0f0;
    margin-bottom: 1.5rem;
    transition: background 0.2s;
}
.card:hover .divider {
    background-color: #f8e3c3;
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    margin-bottom: 1rem;
    font-weight: 400;
}
.card .check-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    background: #fafafa;
    color: #111;
    transition: all 0.2s;
}
.card:hover .check-icon {
    background: #fdf3e3;
    color: #c59c5f;
}
.btn {
    display: flex;
    min-height: 44px;
    width: 100%;
    padding: 0 1rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn:hover {
    background: #c59c5f;
}

/* Responsiveness overrides */
@media (max-width: 1024px) {
    .content-split {
        flex-direction: column-reverse;
    }
    .info-column {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .image-side {
        display: none;
    }
    .form-side,
    .login-page .form-side {
        width: 100%;
        padding: 2rem 5%;
    }
    .hero-title {
        font-size: 2rem;
    }
    .main-container {
        margin: 20px;
        padding: 2rem 1.5rem;
    }
}

/* Forgot Password Flow Styles */
.auth-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.auth-icon-wrapper.orange {
    background-color: #fdf3e3;
    color: #111;
}
.auth-icon-wrapper.green {
    background-color: #d1f4d1;
    color: #16a34a;
}
.auth-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5rem;
}
.auth-page-subtitle {
    font-size: 14px;
    color: #444;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.auth-page-subtitle strong {
    font-weight: 600;
    color: #111;
}
.resend-box {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}
.resend-box-icon {
    width: 24px;
    height: 24px;
    color: #111;
    flex-shrink: 0;
}
.resend-box-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.resend-box-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 300;
    line-height: 1.4;
}
.btn-outline {
    background: #fff;
    color: #111;
    border: 1px solid #eaeaea;
}
.btn-outline:hover {
    background: #fafafa;
    border-color: #ddd;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 12px;
    color: #888;
    font-weight: 300;
    text-decoration: none;
}
.back-link strong {
    color: #c59c5f;
    font-weight: 600;
}
.back-link:hover strong {
    text-decoration: underline;
}

/* ************************************ */
/* 30/05/26 */

/* .header {
    background: #fff;
    border-bottom: 1px solid #EAEAEA;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-item-custom {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #111;
    font-size: 14px;
    font-weight: 500;
}

.profile-btn {
    height: 42px;
    padding: 0 18px;

    border: 1px solid #E7D5B5;
    background: #FDF3E3;
    border-radius: 6px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #C6953F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.profile-btn:hover {
    color: #C6953F;
}

@media (max-width: 991px) {

    .navbar-collapse {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .navbar-nav {
        gap: 10px;
    }

    .nav-item-custom,
    .profile-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-btn {
        margin-top: 5px;
    }
} */

/* header */
.navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 2px;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0;
    color: #222;
}

.navbar .nav-link {
    font-weight: 400;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar .nav-link i {
    /* width: 32px;
    height: 32px; */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-text-stroke: 0.4px;
}

.navbar .nav-link:hover {
    color: #000;
}

.navbar-nav {
    margin-right: 30px;
}

.navbar-brand {
    letter-spacing: 1px;
}
.navbar-brand:focus-visible{
    outline: 0;
}

.navbar-brand img {
    width: 170px;
    height: auto;
    object-fit: contain;
}

.btn-light {
    background: #F7E6CA;
    border-radius: 10px;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #1C1C1E;
}

.btn-light i {
    -webkit-text-stroke: 0.4px;
}

.profile-divider {
    font-weight: 300;
    color: #1C1C1E;
}
.language-btn {
    background: transparent;
}
.language-btn:hover{
    background: transparent;
}
.language-arrow{
    font-size: 10px !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 20px;
        justify-content: flex-end;
    }

    .navbar-nav {
        align-items: flex-start !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 130px;
    }
}
