/* Futuryntix Cloud Platform - Keycloak Login Theme v2 */

/* Full page dark gradient */
html, body, .login-pf, .login-pf body {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1d3d 30%, #1a1145 60%, #2d1b69 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* Center everything vertically */
.login-pf .container, #kc-container-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 20px !important;
    position: relative;
    z-index: 10;
}

/* Header: logo + text */
#kc-header {
    background: transparent !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    padding: 0 !important;
}
#kc-header-wrapper {
    font-size: 0 !important;
    padding: 0 !important;
}
#kc-header-wrapper::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: url("/auth/resources/easyh/login/futuryntix/img/ful_icon.jpg") center/cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
}
#kc-header-wrapper::after {
    content: "Futuryntix Cloud";
    display: block;
    font-size: 24px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #93c5fd, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#kc-header::after {
    content: "Your Cloud. Your Applications. Your Way.";
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.5);
    margin-top: 4px;
    font-weight: 300;
}

/* Login card */
.card-pf, #kc-form-wrapper, .login-pf .card-pf, .kc-form-card {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    max-width: 400px !important;
    padding: 28px 32px !important;
    margin: 0 auto !important;
}

/* Remove extra padding/margins from Keycloak containers */
#kc-content, #kc-content-wrapper, #kc-form {
    padding: 0 !important;
    margin: 0 !important;
}

/* Form heading */
#kc-page-title, .login-pf h1 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 0 0 18px 0 !important;
}

/* Labels */
label, .control-label {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Input fields */
input.form-control, .login-pf input[type="text"],
.login-pf input[type="password"], .login-pf input[type="email"] {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    transition: all 0.2s !important;
}
input.form-control:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
    background: #fff !important;
}

/* Sign In button */
.btn-primary, #kc-login, input[type="submit"] {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
    transition: all 0.2s !important;
    width: 100% !important;
    margin-top: 6px !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Links */
a { color: #7c3aed !important; font-weight: 500 !important; }
a:hover { color: #6d28d9 !important; }

/* Remember me + Forgot password row */
.checkbox label { color: #64748b !important; font-size: 12px !important; text-transform: none !important; }

/* Error messages */
.alert-error, .alert-danger { border-radius: 10px !important; border: 1px solid #fecaca !important; background: #fef2f2 !important; }

/* Registration link */
#kc-registration { text-align: center !important; padding: 10px 0 !important; }
#kc-registration span { color: #94a3b8 !important; font-size: 13px !important; }

/* Hide locale selector */
#kc-locale { display: none !important; }

/* Password toggle */
.pf-c-button.pf-m-control { border-radius: 0 10px 10px 0 !important; border: 1.5px solid #e2e8f0 !important; border-left: none !important; }

/* Info section below card */
#kc-info { margin-top: 10px !important; }
#kc-info a { color: #c4b5fd !important; }

/* Remove any scrollbar-causing elements */
.login-pf-page, #kc-content-wrapper { overflow: visible !important; }




/* ── Decorative orbs ── */
html::before {
    content: "";
    position: fixed;
    width: 350px; height: 350px;
    background: #3b82f6;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    top: -100px; left: -100px;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
html::after {
    content: "";
    position: fixed;
    width: 300px; height: 300px;
    background: #7c3aed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    bottom: -80px; right: -80px;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite 4s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* ── Floating emoji icons on body pseudo-elements ── */
body::before {
    content: "\2601  \1F916  \26A1  \1F310  \1F512";
    position: fixed;
    top: 15%;
    left: 3%;
    font-size: 22px;
    letter-spacing: 12vw;
    opacity: 0.07;
    z-index: 1;
    pointer-events: none;
    animation: iconsFloat1 10s ease-in-out infinite;
    white-space: nowrap;
    filter: none;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}
body::after {
    content: "\1F680  \1F4CA  \2699  \1F517  \1F4A1";
    position: fixed;
    bottom: 12%;
    right: 3%;
    font-size: 20px;
    letter-spacing: 10vw;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    animation: iconsFloat2 12s ease-in-out infinite;
    white-space: nowrap;
    direction: rtl;
    filter: none;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

/* ── Floating glass labels on header pseudo-element ── */
#kc-header-wrapper::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: url("/auth/resources/easyh/login/futuryntix/img/ful_icon.jpg") center/cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Glass label: SAP */
#kc-registration::before {
    content: "SAP";
    position: fixed;
    top: 25%;
    left: 5%;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 6px;
    animation: iconsFloat1 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
/* Glass label: AI */
#kc-registration::after {
    content: "AI";
    position: fixed;
    top: 20%;
    right: 6%;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 6px;
    animation: iconsFloat2 7.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes iconsFloat1 {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-18px); }
    75% { transform: translateY(-12px); }
}
@keyframes iconsFloat2 {
    0%, 100% { transform: translateY(0); }
    33% { transform: translateY(-20px); }
    66% { transform: translateY(-8px); }
}
