/* Login page glassmorphism styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Titillium Web", sans-serif;
}

.background {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #d0d4d9 100%);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.shape:nth-child(1) {
    width: 160px;
    height: 160px;
    top: 20%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(2) {
    width: 240px;
    height: 240px;
    top: 60%;
    right: 15%;
    animation: float 18s infinite ease-in-out reverse;
}

.shape:nth-child(3) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation: float 12s infinite ease-in-out;
}

.shape:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 20%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.glass-container {
    position: relative;
    border: 1px solid;
    border-color: #ffae00;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background-color: #f7f7f7;
    overflow: hidden;
}

@supports not (backdrop-filter: blur(12px)) {
    .glass-container {
        background: rgba(0, 0, 0, 0.85);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-alert {
    text-align: center;
    margin-bottom: 36px;
    color: red;
}

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

.login-header h1 {
    color: black;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-header p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 16px;
}

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

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.7);
    font-size: 18px;
    transition: color 0.3s;
    z-index: 300;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: none;
    border-radius: 12px;
    background: rgba(230, 230, 230, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: black;
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(5px)) {
    .input-group input {
        background: rgba(0, 0, 0, 0.25);
    }
}

.input-group input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.input-group input:focus {
    outline: none;
    background: rgba(240, 240, 240, 1);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background-color: #ffae00;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: black;
    font-size: 17px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 480px) {
    .glass-container {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .glass-container {
        padding: 25px 20px;
    }
}
