﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Recursive, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

body {
    background-color: #f9b778;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.login-page-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 80%;
    gap: 40px;
    margin: 0 auto;
}

.login-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90vw;
    min-width: 260px;
    margin: 0;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

button[type="submit"] {
    background-color: #A0522D;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #8B4513;
}

.login-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-logo img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

.bg-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape1 {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -15rem;
    top: -15rem;
    transform: rotate(0deg);
}

.shape2 {
    position: absolute;
    width: 40rem;
    height: 40rem;
    right: 15rem;
    bottom: -16rem;
}

.icon-spin {
    animation: spinLogo 15s ease-in-out 0s infinite normal none;
}

.icon-spin.reverse {
    animation: spinLogoReverse 15s ease-in-out 0s infinite normal none;
}

@keyframes spinLogo {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(360deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(360deg); }
    100% { transform: rotate(0); }
}

@keyframes spinLogoReverse {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-360deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(-360deg); }
    100% { transform: rotate(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .login-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        text-align: center;
    }
    .login-logo {
        justify-content: center;
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    .login-form-container {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .login-page-container {
        padding: 0;
    }
    .login-form-container {
        padding: 15px;
        max-width: 100vw;
    }
    .login-logo img {
        max-height: 80px;
    }
}

/* SSO Login Styles */
.divider-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
}

.keycloak-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
    text-align: center;
}

.keycloak-login-btn:hover {
    background-color: #0052a3;
    color: white;
    text-decoration: none;
}

.keycloak-login-btn i {
    font-size: 18px;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}