:root {
    --primary-blue: #1e3a8a;
    --primary-green: #4CAF50;
    --accent-color: #f0f0f0;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url("../../images/sentinel_drone_background.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.logo {
    margin-bottom: 20px;
    max-width: 200px;
}

.login-error {
    display: none;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(229, 57, 53, 0.25);
    background: rgba(229, 57, 53, 0.1);
    color: #b71c1c;
    font-size: 13px;
}

.login-success {
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(27, 94, 32, 0.25);
    background: rgba(76, 175, 80, 0.12);
    color: #1b5e20;
    font-size: 13px;
}

.login-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.login-subtitle {
    font-size: 13px;
    color: #5c5c5c;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3e8e41;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    background: transparent;
    text-decoration: underline;
}

.toggle-password::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%205C7%205%202.73%208.11%201%2012c1.73%203.89%206%207%2011%207s9.27-3.11%2011-7c-1.73-3.89-6-7-11-7zm0%2011a4%204%200%201%201%200-8%204%204%200%200%201%200%208z%27/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M12%205C7%205%202.73%208.11%201%2012c1.73%203.89%206%207%2011%207s9.27-3.11%2011-7c-1.73-3.89-6-7-11-7zm0%2011a4%204%200%201%201%200-8%204%204%200%200%201%200%208z%27/%3E%3C/svg%3E") no-repeat center / contain;
}

.toggle-password.is-visible::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M3%204.27%204.28%203%2021%2019.72%2019.73%2021l-3.2-3.2A10.94%2010.94%200%200%201%2012%2019c-5%200-9.27-3.11-11-7a12.9%2012.9%200%200%201%203.53-4.65L3%204.27zM12%207a4%204%200%200%201%204%204c0%20.3-.03.6-.1.88l-5.78-5.78A4.1%204.1%200%200%201%2012%207zm0%2010a10.1%2010.1%200%200%200%203.07-.46l-1.82-1.82A4%204%200%200%201%207.28%208.76L5.5%206.98A10.94%2010.94%200%200%200%202.99%2012c1.73%203.89%206%207%209.01%207z%27/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M3%204.27%204.28%203%2021%2019.72%2019.73%2021l-3.2-3.2A10.94%2010.94%200%200%201%2012%2019c-5%200-9.27-3.11-11-7a12.9%2012.9%200%200%201%203.53-4.65L3%204.27zM12%207a4%204%200%200%201%204%204c0%20.3-.03.6-.1.88l-5.78-5.78A4.1%204.1%200%200%201%2012%207zm0%2010a10.1%2010.1%200%200%200%203.07-.46l-1.82-1.82A4%204%200%200%201%207.28%208.76L5.5%206.98A10.94%2010.94%200%200%200%202.99%2012c1.73%203.89%206%207%209.01%207z%27/%3E%3C/svg%3E") no-repeat center / contain;
}

.language-selector {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.language-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.language-btn:hover,
.language-btn.active {
    background-color: #152b5e;
}

.helper-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.helper-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
}

.helper-links a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
}
