* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: url('/bg.png');
    background-size: contain;
    /* Makes the image fill the whole body and allows cropping */
    background-position: center bottom;
    /* Anchors the image to the bottom of the page */
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    text-align: center;
}


.container {
    width: 100%;
    padding: 0px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fafbfc;
    border-radius: 10px;
}

.desktop-message {
    display: none;
    font-size: 24px;
    color: #333333;
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 6px;
}

.login-form {
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding-left: 50px;
    padding-right: 50px;
}

.title {
    font-weight: 400;
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #222326;
    font-family: Open Sans, sans-serif;
}

.subtitle {
    font-size: 16px;
    color: #666666;
    margin-bottom: 5px;
    font-weight: 400;
}

.instruction {
    font-size: 16px;
    color: #666666;
    margin-bottom: 35px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    text-align: left;
    margin-left: 8px;
    margin-right: 8px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333333;
    margin-bottom: 5px;
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0);
}

.form-group label.active {
    opacity: 1;
    font-size: 12px;
    top: -5px;
    color: #000000;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 0 8px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #fa8357;
    border-radius: 0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    color: #333333;
}

.form-group input::placeholder {
    color: #999999;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder {
    opacity: 0;
}

.form-group input:focus {
    border-bottom-color: #ff6b35;
}

.form-group input.filled {
    border-bottom-color: #ff6b35;
}

.form-group input:disabled {
    background: transparent;
    color: #666666;
    cursor: not-allowed;
}

.password-container {
    position: relative;
}

.password-container .form-group {
    margin-bottom: 0;
}

.password-container label {
    position: absolute;
    left: 0;
    top: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0);
    font-size: 16px;
    color: #333333;
    font-weight: 400;
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.password-container label.active {
    opacity: 1;
    font-size: 12px;
    top: -5px;
    color: #000000;
    font-weight: 600;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: #0037d9;
}

.btn-primary {
    background: #0037d9;
    color: white;
    border: none;
    padding: 9px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: #0037d9;
}

.links {
    text-align: center;
}

.links a {
    color: #0037d9;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-weight: 800;
}

.relogin {
    background-color: #fcdad8;
    color: red;
    text-decoration: none;
    font-size: 12px;
    display: block;
    text-align: left;
    margin-bottom: 15px;
    transition: color 0.3s;
    font-weight: 600;
    padding: 8px 3%; /* <-- increased top/bottom padding */
}


.links a:hover {
    color: #0037d9;
    text-decoration: underline;
}

.privacy-section {
    margin-top: auto;
    padding-top: 0px;

}

.privacy-toggle {
    align-items: center;
    background: #fafbfc;
    padding: 20px 30px;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 800;
    color: #333333;
    font-size: 11px;

    /* Enhanced shadow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.15);
}




.privacy-toggle::after {
    content: '⌄';
    font-size: 12px;
    transition: transform 0.3s;
    color: #666;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .title {
        color: #222326;
        font-family: Open Sans, sans-serif;
        font-size: 56px;
        font-weight: 700;
        line-height: 66px;
    }
}

@media (min-width: 769px) {
    .container {
        display: none;
    }

    .desktop-message {
        display: block;
    }
}