/* Modern Login Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#brickwall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    z-index: 1;
}

#loginBox {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    margin: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
}

#logo a {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

#logo span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#login-message {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#login-message.is-error {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 12px;
    background: rgba(120, 23, 23, 0.28);
    color: #ffd2d2;
    text-shadow: none;
}

#login-message.is-error span {
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

button[type="submit"]:active {
    transform: translateY(0);
}

#company {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

#poweredBy {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

#poweredBy a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
}

#poweredBy a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    #loginBox {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    #logo span {
        font-size: 2rem;
    }
}
