:root {
    --orange: #e85d04;
    --orange-hover: #dc2f02;
    --orange-light: #fff8f2;
    --orange-border: #f2e6dc;
    --text-dark: #3c2415;
    --text-muted: #7d7268;
    --bg-light: #fdfbf9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    background-image: url('images/login bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Header */
.auth-header {
    padding: 20px 0 8px 0;
    border-bottom: none;
    background: transparent;
    overflow: visible;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
}

.header-logo {
    height: 180px;
    object-fit: contain;
    margin: -50px 0 -50px -20px;
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid #ebdcd0;
    border-radius: 50px;
    padding: 10px 24px;
    background: #ffffff;
}

.back-home-btn:hover {
    color: #ffffff;
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3);
}

/* Main Section */
.login-section {
    padding: 60px 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.login-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Column */
.welcome-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

.welcome-title span {
    color: var(--orange);
}

.welcome-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.feature-icon-circle svg {
    width: 26px;
    height: 26px;
}

.feature-info h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-info p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.sweets-hero-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--orange-border);
    margin-top: 10px;
}

/* Right Column Form Card */
.form-card {
    background: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(60, 36, 21, 0.04);
    position: relative;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--orange-light);
    border: 1px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin: 0 auto 24px auto;
}

.avatar-circle svg {
    width: 32px;
    height: 32px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-header h2 span {
    color: var(--orange);
}

.card-header p {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tab Trigger */
.tab-triggers {
    display: flex;
    border-bottom: 1.5px solid #f2e6dc;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 3px 3px 0 0;
}

/* Forms */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.phone-input-group {
    display: flex;
    border: 1px solid #ebdcd0;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-group:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.05);
}

.country-select {
    padding: 14px 16px;
    border: none;
    background: #faf8f5;
    border-right: 1px solid #ebdcd0;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ebdcd0;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.05);
}

.phone-input-group .form-input {
    border: none;
}

.otp-verification-step {
    animation: otpStepIn 0.25s ease-out;
}

.otp-step-heading {
    text-align: center;
    margin-bottom: 22px;
}

.otp-step-heading h3 {
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: 19px;
}

.otp-step-heading p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.otp-step-heading strong {
    color: var(--text-dark);
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.otp-input {
    width: 100%;
    height: 52px;
    padding: 0;
    border: 1px solid #ebdcd0;
    border-radius: 10px;
    background: #fffdfb;
    color: var(--text-dark);
    font-size: 21px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.08);
}

.otp-input.otp-error {
    border-color: #d93025;
    background: #fff7f6;
}

.otp-status {
    min-height: 20px;
    margin: 0 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.otp-status-info {
    color: #8a5a38;
}

.otp-status-error {
    color: #c62828;
}

.otp-status-success {
    color: #18864b;
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    color: #b6a99f;
    font-size: 12px;
}

.otp-link {
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--orange);
    font: 700 12.5px 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
}

.otp-link:disabled {
    color: var(--text-muted);
    cursor: default;
}

@keyframes otpStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
}

.btn-outline:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ebdcd0;
    z-index: 1;
}

.divider span {
    background: #ffffff;
    padding: 0 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.btn-google {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #ebdcd0;
    border-radius: 12px;
    background: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #faf8f5;
    border-color: var(--orange-border);
    transform: translateY(-2px);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.card-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.card-footer a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 800;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: #ffffff;
    background-image: url('images/footer bg login and register.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid #ebdcd0;
    padding: 20px 0 20px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 160px;
    object-fit: contain;
    margin-top: -35px;
    margin-bottom: -35px;
    margin-left: 0;
}

.footer-about {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-btn-img {
    height: 48px;
    object-fit: contain;
    width: auto;
    cursor: pointer;
    align-self: flex-start;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
    stroke-width: 2px;
}

.social-icon-btn:hover {
    background: var(--orange);
    color: #ffffff;
    border-color: var(--orange);
    transform: scale(1.1);
}

.footer-bottom-bar {
    padding: 10px 24px;
    border-top: 1px solid #ebdcd0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    max-width: 100%;
    position: relative;
}

.footer-bottom-right {
    text-align: right;
    max-width: 600px;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 992px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .welcome-column {
        text-align: center;
        align-items: center;
    }

    .features-list {
        align-items: center;
    }

    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .form-card {
        padding: 24px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-input {
        height: 46px;
        border-radius: 8px;
        font-size: 18px;
    }
}
