@font-face {
    font-family: 'poppins';
    font-display: swap;
    src: url('../Poppins-Font-2/Poppins-Regular.ttf') format('truetype');
}

:root {
    --primary-color: #8C2C8C;
    --primary-dark: #6B1F6B;
    --secondary-color: #3C3C4E;
    --accent-color: #FDE1B4;
    --white: #ffffff;
    --light-grey: #f5f5f7;
    --border-grey: #e0e0e0;
    --text-grey: #6c757d;
    --success-color: #28a745;
    --gradient-start: #8C2C8C;
    --gradient-end: #5a1a5a;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated Background */
.login-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Login Card */
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 440px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password-card {
    max-width: 480px;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h1 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-header p {
    color: var(--text-grey);
    font-size: 15px;
    line-height: 1.5;
}

/* Forgot Icon */
.forgot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(140, 44, 140, 0.3);
}

.forgot-icon i {
    font-size: 30px;
    color: white;
}

/* Modern Form */
.modern-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    font-size: 15px;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--secondary-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--light-grey);
    box-shadow: 0 0 0 4px rgba(140, 44, 140, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .input-border {
    width: 100%;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password i {
    font-size: 18px;
}

/* Modern Button */
.modern-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(140, 44, 140, 0.4);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(140, 44, 140, 0.5);
}

.modern-btn:active {
    transform: translateY(0);
}

.btn-text {
    flex: 1;
}

.btn-icon {
    font-size: 18px;
}

/* Card Footer */
.card-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-grey);
}

.card-footer p {
    color: var(--text-grey);
    font-size: 14px;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Help Button */
.help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(140, 44, 140, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(140, 44, 140, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(140, 44, 140, 0.6);
    }
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(140, 44, 140, 0.6);
}

.help-button i {
    font-size: 28px;
    color: white;
}

/* Chat Box */
.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 998;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-box.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header i {
    font-size: 20px;
}

.chat-header span {
    flex: 1;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-content {
    padding: 20px;
}

.chat-content p {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.chat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chat-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-card {
        padding: 40px 30px;
        width: 95%;
        border-radius: 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .card-header p {
        font-size: 14px;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .help-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .help-button i {
        font-size: 24px;
    }
    
    .chat-box {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
    }
    
    .shape {
        filter: blur(50px);
    }
}

@media (max-width: 375px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .modern-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}