/* General */
* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url('/includes/img/career-bg.png') no-repeat center center fixed;
    background-size: cover;
}

/* Page wrapper */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    margin: 0;
    min-height: 100vh;
    flex-direction: column;
}

/* Login box */
.login-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
    z-index: 999;
}

.login-logo img {
    max-height: 150px;
    width: 150px;
    display: block;
    margin: 0 auto 10px auto;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-primary {
    width: 100%;
    background-color: #00b0ed;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #20c0f0;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

copyright {
    text-align: center;
    font-size: 0.9rem;
    color: white;
    margin-top: 30px;
}

copyright a {
    color: #00aaff;
    text-decoration: none;
}

a.digivort {
    color: #00aaff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a.digivort:hover {
    color: #fec034;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}

/* Responsive */
@media (max-width: 500px) {
    .login-box {
        padding: 25px;
        margin: 0 15px;
    }
}

/* Loader */
#loader {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#loader div {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #003f72;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

#loader p {
    margin-top: 15px;
    font-weight: bold;
    color: #003f72;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
