/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 90, 166, 0.04);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dde1e7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JMA Logo */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    max-height: 50px;
    width: auto;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #005aa6;
}

/* Test Environment Banner */
.login-test-env-banner {
    background-color: #fff0f0;
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    letter-spacing: 0.02em;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.login-header h1 {
    font-size: 1.6em;
    color: #005aa6;
    margin-bottom: 4px;
    font-weight: 700;
}

.login-header p {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.entra-tenant-buttons {
    display: flex;
    gap: 48px;
    width: 100%;
    margin: 0 auto;
}

.entra-tenant-buttons .login-btn {
    flex: 1;
    width: calc(50% - 12px);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
}

@media (max-width: 480px) {
    .entra-tenant-buttons {
        gap: 8px;
        width: 100%;
    }

    .entra-tenant-buttons .login-btn {
        font-size: 17px;
        padding: 10px 6px;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #005aa6;
    box-shadow: 0 0 0 3px rgba(0, 90, 166, 0.1);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

.remember-me input {
    margin-right: 6px;
    cursor: pointer;
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
}

.forgot-password {
    color: #005aa6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #0093e3;
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 13px 16px;
    background-color: #005aa6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background-color: #0093e3;
    box-shadow: 0 4px 12px rgba(0, 90, 166, 0.25);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #dde1e7;
}

.login-footer p {
    font-size: 12px;
    color: #888;
}
