* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Beautiful landscape background with overlay, with a dark fallback color */
    background: #2c3e50 url('../images/bg.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Background Blur Layer */
body::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: inherit;
    filter: blur(8px);
    z-index: 0;
}

/* Overlay to darken background slightly */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.container {
    background: rgba(54, 63, 71, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    z-index: 1;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-circle {
    width: 65px;
    height: 65px;
    background-color: #d9444a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #e0e6ed;
}

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

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(82, 94, 105, 0.8);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: background 0.3s;
}

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

.input-group input:focus {
    background: rgba(94, 107, 120, 0.9);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: #db3b44;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #ed424b;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: #db3b44;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.btn-danger:hover {
    background: #ed424b;
}

.alert-msg {
    background: rgba(255, 75, 75, 0.2);
    border-left: 4px solid #ff4b4b;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.alert-success {
    background: rgba(75, 255, 100, 0.2);
    border-left: 4px solid #4bff64;
}

.footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.password-display {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    font-family: monospace;
    font-size: 20px;
    color: #4bff64;
    word-break: break-all;
    border: 1px dashed rgba(255,255,255,0.2);
}

.text-center {
    text-align: center;
}

.info-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    text-align: center;
}

.password-strength {
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
    display: block;
    color: #ff4b4b;
}
.password-strength.good { color: #ffb74d; }
.password-strength.strong { color: #4bff64; }
