﻿/* Custom CSS Variables */
:root {
    --wabag-blue: #283a8d;
    --wabag-light-blue: #3a51a3;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* Main Layout */
.page-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed to align items to the left */
    padding-left: 0%; /* Add padding to push content from the edge */
    overflow: hidden;
}

/* Background Image with Overlay */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Images/wh.jpg');
    background-size: cover;
    background-position: top;
    filter: brightness(0.9);
    /*z-index: -2;*/
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Login Form Container */
.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 420px;
    padding: 10px;
    margin: 20px;
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    max-width: 140px;
    display: inline-block;
}

/* Tab Navigation */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

    .tab.active {
        color: var(--wabag-blue);
        border-bottom: 2px solid var(--wabag-blue);
    }

    .tab:hover:not(.active) {
        color: #444;
    }

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #333;
    }

.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

    .input-field:focus {
        border-color: var(--wabag-blue);
        box-shadow: 0 0 0 2px rgba(40, 58, 141, 0.2);
        outline: none;
    }

/* Button Group */
.button-group {
    display: flex;
    justify-content: center; /* Changed to center for single button */
    align-items: center;
    margin-top: 30px;
}

.button {
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    min-width: 120px; /* Add min-width for better appearance */
}

.secondary-button {
    background-color: #f1f1f1;
    color: #333;
}

    .secondary-button:hover {
        background-color: #e1e1e1;
    }

.primary-button {
    background-color: var(--wabag-blue);
    color: white;
}

    .primary-button:hover {
        background-color: var(--wabag-light-blue);
        box-shadow: 0 2px 10px rgba(40, 58, 141, 0.3);
    }

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-container {
        justify-content: center; /* Center on small screens */
        padding-left: 0;
    }

    .login-container {
        width: 100%;
        max-width: 90%;
        padding: 30px 20px;
    }

    .button {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 20px 15px;
    }
}
