:root {
    --primary-color: #3a8e9e;
    --secondary-color: #6cb2c8;
    --accent-color: #a3d5e0;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --border-color: #e1e5eb;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background decorative elements */
body::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

body::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.2;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-card {
    background-color: #ffffff;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.login-header {
    padding: 30px 25px 20px;
    text-align: center;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.2;
}

.header-icon {
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(58, 142, 158, 0.2);
    position: relative;
    border: 4px solid white;
}

.header-icon::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.header-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.header-icon svg path {
    fill: white;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.login-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.login-form {
    padding: 30px 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    padding-left: 40px;
}

.form-group::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.form-group:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%233a8e9e' d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z'/%3E%3C/svg%3E");
}

.form-group:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%233a8e9e' d='M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z'/%3E%3C/svg%3E");
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 142, 158, 0.1);
}

input::placeholder {
    color: #aab0b7;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

button::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    opacity: 0;
    transition: opacity 0.5s;
}

button:hover {
    background: #2d7a88;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover::after {
    opacity: 1;
    animation: sheen 1s forwards;
}

@keyframes sheen {
    100% {
        transform: rotateZ(60deg) translate(1em, -9em);
    }
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
    position: relative;
    padding: 10px;
}

.copyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    opacity: 0.5;
}

/* Floating shapes */
.shape {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.shape-2 {
    bottom: 15%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    transform: rotate(25deg);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header {
        padding: 20px 15px 15px;
    }
    
    .header-icon {
        width: 70px;
        height: 70px;
        margin-top: -10px;
    }
    
    .header-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
    
    .login-header h2 {
        font-size: 1rem;
    }
    
    .login-form {
        padding: 20px 15px;
    }
    
    button {
        padding: 10px;
    }
}