:root {
    --primary-pink: #d6006e;
    /* Inspired by the image pink */
    --accent-pink: #fce4ec;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

/* Custom Pink Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0005a;
}

.hidden {
    display: none !important;
}

/* Scroll to Top Button */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-pink);
    color: var(--white);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(214, 0, 110, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-btn:hover {
    background-color: #b0005a;
    transform: translateY(-5px);
}

/* Flash Message Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(214, 0, 110, 0.15);
    border-left: 5px solid var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    min-width: 320px;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    background: var(--accent-pink);
    color: var(--primary-pink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    display: block;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-light);
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Visual Section */
.visual-section {
    flex: 1.2;
    position: relative;
    background-color: #f0f4f8;
    /* Changed from primary-pink to a light neutral blue-gray */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Increased opacity to show natural colors */
    transition: transform 10s ease-in-out;
}

.visual-section:hover .hero-image {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    /* Changed from pink to dark transparent */
    z-index: 1;
}

.brand-message {
    position: absolute;
    bottom: 10%;
    left: 10%;
    z-index: 2;
    color: var(--white);
    max-width: 500px;
}

.brand-message h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.brand-message .highlight {
    color: var(--accent-pink);
}

.brand-message p {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Form Section */
.form-section {
    flex: 1;
    background-color: var(--white);
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.form-header {
    margin-bottom: 40px;
}

.logo-placeholder {
    margin-bottom: 30px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.pink-text {
    color: var(--primary-pink);
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #edf2f7;
    border-radius: var(--radius);
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(214, 0, 110, 0.1);
}

.input-wrapper input:focus+i {
    color: var(--primary-pink);
}

.toggle-password {
    left: auto !important;
    right: 16px;
    cursor: pointer;
}

/* Checkbox */
.options-row {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-pink);
}

.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;
}

/* Button */
.login-btn {
    background-color: var(--primary-pink);
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #b0005a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 0, 110, 0.3);
}

.login-btn i {
    font-size: 0.9rem;
}

/* Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #edf2f7;
}

.divider span {
    background-color: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn img {
    height: 24px;
}

.social-btn:hover {
    background-color: var(--bg-light);
    border-color: #cbd5e0;
}

.signup-prompt {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.signup-prompt a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.form-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 40px;
}

.form-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .brand-message h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .visual-section {
        display: none;
    }

    .form-section {
        padding: 40px 5%;
    }
}