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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E") repeat;
    animation: float 20s linear infinite;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.login-wrap {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.login-pic {
    width: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 600px;
}

.login-pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 25s linear infinite reverse;
}

.login-pic-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px;
}

.login-pic h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-pic p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

.login-form-wrap {
    width: 50%;
    position: relative;
    background: #fff;
}

.login-form {
    width: 100%;
    padding: 80px 55px 55px 55px;
}

.login-form-title {
    font-size: 36px;
    color: #333;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-form-subtitle {
    font-size: 16px;
    color: #999;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 40px;
    font-weight: 400;
}

.wrap-input {
    width: 100%;
    position: relative;
    border-bottom: 2px solid #e6e6e6;
    margin-bottom: 30px;
}

.input {
    font-size: 18px;
    color: #555;
    line-height: 1.2;
    border: none;
    display: block;
    width: 100%;
    height: 55px;
    background: transparent;
    padding: 0 5px 0 0;
    outline: none;
    font-family: inherit;
}

.focus-input {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.focus-input::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.4s;
}

.input:focus + .focus-input::before {
    width: 100%;
}

.label-input {
    font-size: 16px;
    color: #999;
    line-height: 1.5;
    padding-left: 5px;
    position: absolute;
    top: 16px;
    left: 0;
    pointer-events: none;
    transition: all 0.4s;
}

.input:focus + .focus-input .label-input,
.input:not(:placeholder-shown) + .focus-input .label-input {
    top: -20px;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.container-login-form-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.login-form-btn {
    font-size: 16px;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.error {
    color: #e53e3e;
    margin: 20px 0;
    padding: 15px;
    background: rgba(254, 226, 226, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(229, 62, 62, 0.2);
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrap {
        max-width: 400px;
    }
    
    .login-pic {
        display: none;
    }
    
    .login-form-wrap {
        width: 100%;
    }
    
    .login-form {
        padding: 40px 30px;
    }
}

/* Legacy support for dashboard and other pages */
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    width: 380px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.logout-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 12px rgba(229, 62, 62, 0.3),
        0 3px 6px rgba(229, 62, 62, 0.2);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(229, 62, 62, 0.4),
        0 4px 8px rgba(229, 62, 62, 0.3);
}