/* src/web/static/css/login.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1C1552 0%, #2B2172 100%);
    color: #333;
}

.login-container {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.logo-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1C1552;
    color: white;
}

#logo {
    height: 70px;
    margin-bottom: 15px;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
}

.login-form-container {
    padding: 30px;
    background-color: #fff;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1C1552;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #D78B00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 139, 0, 0.2);
}

.login-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #D78B00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.login-button:hover {
    background-color: #C07800;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* OAuth buttons */
.oauth-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
}

.oauth-google {
    background: #fff;
    color: #3c4043;
}

.oauth-google:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.oauth-microsoft {
    background: #fff;
    color: #3c4043;
}

.oauth-microsoft:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
}

.password-section {
    margin-bottom: 10px;
}

.password-section summary {
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 8px;
    list-style: none;
}

.password-section summary::-webkit-details-marker {
    display: none;
}

.password-section summary:hover {
    color: #1C1552;
}

.password-section[open] summary {
    margin-bottom: 16px;
    color: #1C1552;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
}

.version {
    font-size: 0.7rem;
    margin-top: 5px;
    color: #999;
}

@media (max-width: 600px) {
    .login-container {
        width: 95%;
    }
}