:root {
    --primary-grad: linear-gradient(135deg, #2b140a 0%, #4F2413 100%);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.12);
    --text-color: #f8f9fa;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-height: 680px), (max-width: 480px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    body {
        padding: 20px;
    }
}

/* Ambient glowing circles */
.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 153, 54, 0.4) 0%, rgba(79, 36, 19, 0) 70%);
    z-index: 1;
    filter: blur(40px);
    pointer-events: none;
}
.glow-1 {
    top: -100px;
    left: -100px;
    animation: float-slow 15s infinite alternate;
}
.glow-2 {
    bottom: -150px;
    right: -100px;
    animation: float-slow 18s infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #F2ECE3;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.logo-wrapper:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.logo-wrapper img {
    max-height: 70px;
    max-width: 90px;
    object-fit: contain;
}

.login-title {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #F2ECE3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

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

.form-control-custom {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px 14px 46px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #D39936;
    outline: none;
    box-shadow: 0 0 10px rgba(211, 153, 54, 0.25);
    color: #ffffff;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control-custom:focus + .input-icon {
    color: #D39936;
}

.btn-login {
    background: linear-gradient(135deg, #4F2413 0%, #7d3b20 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5c2c18 0%, #a2522e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 153, 54, 0.2);
    color: #ffffff;
}

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

.alert-custom {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #f8d7da;
    font-size: 0.85rem;
    padding: 12px 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}
