:root {
    --primary: #6C5CE7;
    --primary-dark: #4834d4;
    --secondary: #a29bfe;
    --text-dark: #2D3436;
    --text-gray: #636e72;
    --bg-light: #F5F6FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(108, 92, 231, 0.4);
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 206, 201, 0.3);
    bottom: -100px;
    right: -100px;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.logo .dot {
    color: var(--primary);
}

.login-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-gray);
}


.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid transparent;
    background: #EEF2F7;
    border-radius: 15px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    color: var(--text-dark);
}

.input-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: 0.3s;
}

.input-group input:focus + .icon,
.input-group input:focus ~ .icon {
    color: var(--primary);
}

.show-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: var(--text-gray);
}

.actions a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.actions a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #0033FF);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
}

.toggle-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.toggle-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.toggle-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d63031;
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
    display: none; 
    padding: 8px;
    background-color: #ffeaea;
    border-radius: 8px;
    border: 1px solid #ffcece;
}
        
.show-pass {
    cursor: pointer;
}


@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}