/* Base Styles & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #3366ff;
    --primary-dark: #2952cc;
    --primary-light: #e6ecff;
    --secondary: #ff4c4c;
    --text-primary: #1a2233;
    --text-secondary: #505a71;
    --text-tertiary: #8892a8;
    --background: #f5f7fa;
    --card-bg: #ffffff;
    --border: #e0e6ed;
    --success: #00c48c;
    --input-bg: #f7f9fc;
    --shadow-sm: 0 2px 8px rgba(26, 34, 51, 0.05);
    --shadow-md: 0 4px 16px rgba(26, 34, 51, 0.1);
    --shadow-lg: 0 8px 30px rgba(26, 34, 51, 0.15);

    /* Typography */
    --font-family: 'Poppins', sans-serif;

    /* Animation */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;

    /* Sizes */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 16px;
    line-height: 1.1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-family);
}

input {
    font-family: var(--font-family);
}

/* Main Layout */
.page-container {
    width: 90%;
    max-width: 1200px;
    padding: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    min-height: 680px;
}

.card-side {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.card-side-left {
    background: linear-gradient(135deg, #1a2233 0%, #384973 100%);
    color: white;
    width: 50%;
    position: relative;
    overflow: hidden;
}

.card-side-right {
    width: 50%;
    padding: 50px;
    position: relative;
    overflow-y: auto;
}

/* Left Side Content */
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* margin-bottom: 40px; */
}

.logo {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

.tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-content {
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.hero-content h2:last-of-type {
    margin-bottom: 15px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: 30px;
    max-width: 90%;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    min-width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial {
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.2);
}

.quote-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-left: 15px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffd580;
    background-image: url('https://source.unsplash.com/random/100x100/?portrait');
    background-size: cover;
    background-position: center;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Login success/error message styles */
.login-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.login-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}



/* Form Tabs */
.form-switcher {
    display: flex;
    background-color: var(--input-bg);
    border-radius: var(--border-radius-lg);
    padding: 5px;
    position: relative;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 10px);
    width: calc(50% - 10px);
    background-color: white;
    border-radius: var(--border-radius-lg);
    top: 5px;
    left: 5px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal) ease;
}

/* Forms */
.form-container {
    transition: all var(--transition-normal);
    opacity: 1;
    transform: translateX(0);
}

.form-container.hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.form-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.input-container {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    background-color: var(--input-bg);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.2);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background-color: transparent;
    font-size: 15px;
    color: var(--text-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-tertiary);
}

.input-wrapper input:focus {
    outline: none;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.input-wrapper input:focus~.input-focus-border {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 16px;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-container:hover .checkmark {
    background-color: #e0e6f5;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.terms-checkbox {
    margin-bottom: 25px;
}

.terms-checkbox .checkbox-text a {
    text-decoration: underline;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* Buttons */
.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

.primary-btn:active {
    transform: translateY(1px);
}

.btn-icon {
    font-size: 14px;
}

.secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    margin-top: 15px;
    transition: all var(--transition-fast);
}

.secondary-btn:hover:not(:disabled) {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.secondary-btn:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.divider-text {
    padding: 0 15px;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--input-bg);
}

.social-btn i {
    font-size: 16px;
}

.google-btn i {
    color: #ea4335;
}

.facebook-btn i {
    color: #3b5998;
}

.twitter-btn i {
    color: #1da1f2;
}

/* Password Strength */
.password-strength {
    margin-bottom: 20px;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.meter-segment {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background-color: var(--border);
}

.meter-segment.weak {
    background-color: #ffcccb;
}

.meter-segment.medium {
    background-color: #ffd580;
}

.meter-segment.strong {
    background-color: #c8e6c9;
}

.meter-segment.very-strong {
    background-color: #00c48c;
}

.strength-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* OTP Form */
.otp-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--input-bg);
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 15px;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.mobile-illustration {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.phone-icon {
    font-size: 60px;
    color: var(--text-secondary);
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 102, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(51, 102, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(51, 102, 255, 0);
    }
}

.otp-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.otp-input {
    width: 50px;
    height: 60px;
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: all var(--transition-fast);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.2);
    background-color: white;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.timer-circle {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.timer-circle-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset var(--transition-normal) linear;
}

#timer {
    position: absolute;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
}

.timer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

#timer-seconds {
    font-weight: 600;
    color: var(--primary);
}

/* Success Screen */
.success-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: scaleIn 0.5s ease forwards;
}

.success-ripple {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--success);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 1.5s linear infinite;
}

@keyframes scaleIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    60% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#success-message h2 {
    text-align: center;
    color: var(--success);
}

#success-message .form-subtitle {
    text-align: center;
}

.success-details {
    background-color: var(--input-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 30px;
}

.success-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.success-detail:last-child {
    margin-bottom: 0;
}

.success-detail i {
    font-size: 20px;
    color: var(--primary);
}

.success-detail p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Toasts */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    min-width: 300px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background-color: #e6f7f1;
    border-left: 4px solid var(--success);
}

.toast.error {
    background-color: #ffeeed;
    border-left: 4px solid var(--secondary);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--secondary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
}

.toast-close {
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Media Queries */
@media (max-width: 992px) {
    .card {
        flex-direction: column;
        min-height: auto;
    }

    .card-side-left,
    .card-side-right {
        width: 100%;
        padding: 30px;
    }

    .card-side-left {
        display: none;
    }

    .form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 15px;
    }

    .card {
        box-shadow: none;
        background-color: transparent;
    }

    .card-side-right {
        padding: 20px 15px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .social-login {
        flex-direction: column;
    }

    .toast {
        min-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    resize: vertical;
    background-color: transparent;
    font-size: 15px;
    color: var(--text-primary);
}

.upload-label {
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
    color: var(--text-secondary);
}

.image-preview {
    position: relative;
    margin-top: 10px;
    max-width: 150px;
}

.image-preview img {
    width: 100%;
    border-radius: var(--border-radius-md);
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
}

.hidden {
    display: none;
}