/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
}

body {
    background: url('../images/login_background.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Auth Container - Centered */
.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    display: none;
}

.auth-container.active {
    display: block;
}

/* Logo Container */
.logo-container {
    padding: 30px;
    text-align: center;
    background-color: #1874ab;
}

.company-logo {
    max-width: 180px;
    height: auto;
}

/* Form Content */
.form-content {
    padding: 30px;
}

.auth-container h3 {
    color: #1874ab;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #35a0cf;
    box-shadow: 0 0 0 3px rgba(53, 160, 207, 0.2);
    outline: none;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background-color: #1874ab;
    color: white;
}

.btn-primary:hover {
    background-color: #156291;
}

.btn-google {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    margin-top: 15px;
}

.btn-google:hover {
    background-color: #f5f5f5;
}

.btn-google i {
    margin-right: 10px;
    color: #DB4437;
}

/* Form Footer */
.form-footer {
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}

.form-footer a {
    color: #35a0cf;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Social Login */
.social-login {
    margin-top: 30px;
}

.divider {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 14px;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #4CAF50;
}

.alert-error {
    background-color: #f44336;
}

.alert-info {
    background-color: #2196F3;
}

.alert-warning {
    background-color: #ff9800;
}

.close-alert {
    margin-left: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
    }
    
    .logo-container {
        padding: 20px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .company-logo {
        max-width: 150px;
    }
}
