/* PLS Login Page Styles - Light Version */
/* Logo: /css/pls/pls_kreuz_trans_small.png */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    padding-top: 10vh;
    position: relative;
    overflow: hidden;
}

/* Background - soft light blue with subtle cyan wash */
.login-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 620px at 18% 86%, rgba(2, 159, 200, 0.12) 0%, rgba(2, 159, 200, 0) 58%),
        radial-gradient(900px 560px at 83% 20%, rgba(13, 105, 134, 0.08) 0%, rgba(13, 105, 134, 0) 60%),
        radial-gradient(820px 420px at 50% 102%, rgba(50, 185, 220, 0.06) 0%, rgba(50, 185, 220, 0) 56%),
        linear-gradient(128deg, #c4dee8 0%, #d4eaf1 36%, #dff0f5 62%, #c8e2ec 100%);
    background-size: 130% 130%, 125% 125%, 145% 145%, 100% 100%;
    background-position: 0% 72%, 100% 18%, 50% 100%, 0 0;
    animation: pls-light-drift 24s ease-in-out infinite alternate;
}

.login-background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(104deg, rgba(2, 159, 200, 0) 30%, rgba(2, 159, 200, 0.04) 50%, rgba(2, 159, 200, 0) 70%);
    mix-blend-mode: normal;
    opacity: 0.5;
    transform: translateX(-115%);
    animation: pls-light-shimmer 12s ease-in-out infinite;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: pls-light-float 22s infinite ease-in-out;
}

.login-shape:nth-child(1) {
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg, #029fc8 0%, #32b9dc 100%);
    top: -260px;
    left: -230px;
    animation-delay: 0s;
}

.login-shape:nth-child(2) {
    width: 430px;
    height: 430px;
    background: linear-gradient(135deg, #0d6986 0%, #1a8aab 100%);
    bottom: -220px;
    right: -190px;
    animation-delay: -11s;
}

@keyframes pls-light-drift {
    0% {
        background-position: 0% 72%, 100% 18%, 50% 100%, 0 0;
    }

    50% {
        background-position: 10% 82%, 88% 12%, 46% 92%, 0 0;
    }

    100% {
        background-position: 6% 67%, 94% 24%, 54% 98%, 0 0;
    }
}

@keyframes pls-light-shimmer {
    0% {
        transform: translateX(-115%);
        opacity: 0.3;
    }

    46% {
        transform: translateX(-115%);
        opacity: 0.3;
    }

    62% {
        transform: translateX(115%);
        opacity: 0.6;
    }

    100% {
        transform: translateX(115%);
        opacity: 0.2;
    }
}

@keyframes pls-light-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(46px, 42px) scale(1.07);
    }

    50% {
        transform: translate(24px, -30px) scale(0.93);
    }

    75% {
        transform: translate(-42px, 28px) scale(1.03);
    }
}

/* Login Card - frosted glass on light */
.login-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px) saturate(1.1);
    border: 1px solid rgba(2, 159, 200, 0.2);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 30px 78px rgba(0, 88, 120, 0.12),
        0 0 0 1px rgba(2, 159, 200, 0.06) inset;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Logo override via CSS */
.login-logo {
    content: url('/css/pls/logo.jpg');
    width: min(260px, 76%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-logo-icon {
    content: url('/css/pls/pls_kreuz_trans_small.png');
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 10px rgba(2, 159, 200, 0.35));
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0088ab 0%, #029fc8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #4a7d8f;
    font-size: 0.95rem;
    margin: 0;
}

/* Form Styles */
.login-content {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a4a5c;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: #0d6986;
    pointer-events: none;
    z-index: 1;
}

.form-control-modern {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(2, 159, 200, 0.3);
    border-radius: 12px;
    color: #0a3d54;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-modern::placeholder {
    color: #7ba8b8;
}

.form-control-modern:focus {
    outline: none;
    background: #ffffff;
    border-color: #029fc8;
    box-shadow: 0 0 0 3px rgba(2, 159, 200, 0.18);
}

.twofactor-subtext {
    color: #4a7d8f;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.twofactor-code-input {
    letter-spacing: 0.18rem;
    font-weight: 600;
}

.twofactor-code-input::placeholder {
    letter-spacing: normal;
    font-weight: 400;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #1a4a5c;
    font-size: 0.9rem;
    margin: 0;
}

.checkbox-modern {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #029fc8;
}

.forgot-password {
    color: #0088ab;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #029fc8;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0088ab 0%, #029fc8 55%, #32b9dc 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(2, 159, 200, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 159, 200, 0.35);
    background: linear-gradient(135deg, #029fc8 0%, #32b9dc 55%, #5ccbe5 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-login:hover .arrow {
    transform: translateX(4px);
}

/* Footer Links */
.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: #4a7d8f;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.link-register {
    color: #0088ab;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-register:hover {
    color: #029fc8;
}

.link-secondary {
    color: #7ba8b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #1a4a5c;
}

/* External Login Section */
.external-login-section {
    margin-top: 2rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(2, 159, 200, 0.2);
}

.divider span {
    padding: 0 1rem;
    color: #7ba8b8;
    font-size: 0.85rem;
}

/* Validation Messages */
.validation-summary {
    background: rgba(209, 73, 91, 0.1);
    border: 1px solid rgba(209, 73, 91, 0.35);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary-info {
    background: rgba(2, 159, 200, 0.08);
    border-color: rgba(2, 159, 200, 0.35);
}

.text-danger {
    color: #c0394a !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Alert / Status Messages */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-danger {
    background: rgba(209, 73, 91, 0.1);
    border: 1px solid rgba(209, 73, 91, 0.35);
    color: #c0394a;
}

.alert-success {
    background: rgba(45, 157, 100, 0.1);
    border: 1px solid rgba(45, 157, 100, 0.35);
    color: #1e7a44;
}

.login-info-text {
    color: rgba(26, 74, 92, 0.85);
}

.btn-login-link {
    text-decoration: none;
}

/* External Login Buttons */
.external-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-external-login {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(2, 159, 200, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    color: #1a4a5c;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-external-login:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #029fc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 159, 200, 0.15);
}

/* Provider-specific hover colors */
.btn-external-microsoft:hover { border-color: #00a4ef; }
.btn-external-google:hover { border-color: #4285f4; }
.btn-external-azuread:hover { border-color: #0078d4; }
.btn-external-okta:hover { border-color: #007dc1; }

/* Responsive Design */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
