/* inTek login — Home splash inspired */

html,
body * {
    box-sizing: border-box;
}

body.intek-login {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #e0e7ff;
    background: #000000;
    position: relative;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000000;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: morphAnimation 15s ease-in-out infinite;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(98, 101, 253, 0.5), rgba(98, 101, 253, 0.2), transparent);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(98, 101, 253, 0.4), rgba(98, 101, 253, 0.15), transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(98, 101, 253, 0.35), rgba(98, 101, 253, 0.1), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes morphAnimation {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(100px, -100px) scale(1.2) rotate(90deg);
        border-radius: 60% 40% 60% 40%;
    }
    50% {
        transform: translate(-80px, 80px) scale(0.8) rotate(180deg);
        border-radius: 40% 60% 40% 60%;
    }
    75% {
        transform: translate(120px, 120px) scale(1.1) rotate(270deg);
        border-radius: 55% 45% 55% 45%;
    }
}

.intek-login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.intek-login-panel {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo (from Home splash) */
.logo-container {
    position: relative;
    margin-bottom: 36px;
    background: transparent;
}

.logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1;
    position: relative;
    background: transparent;
}

.logo-svg {
    height: 72px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.letter {
    position: relative;
    display: inline-block;
}

.letter-i {
    animation: letterSlideInLeft 1s ease-out 0.2s both;
    margin: 8px;
}

.letter-i .logo-svg {
    filter: brightness(0) invert(1);
}

.letter-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
}

.letter-n {
    animation: letterSlideInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 1;
    margin-right: 10px;
}

.letter-n .logo-svg {
    filter: brightness(0) invert(1);
}

.letter-t {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: letterTPulse 2s ease-in-out infinite 0.6s;
    pointer-events: none;
    margin-left: 8px;
}

.letter-t .logo-svg {
    height: 72px;
    animation: letterTPulseGlow 2s ease-in-out infinite 0.6s;
}

.letter-e {
    animation: letterSlideInDown 1s ease-out 0.6s both;
    position: relative;
    z-index: 1;
    margin-left: 14px;
}

.letter-e .logo-svg {
    filter: brightness(0) invert(1);
}

.letter-k {
    animation: letterSlideInRight 1s ease-out 0.8s both;
    margin: 8px;
}

.letter-k .logo-svg {
    filter: brightness(0) invert(1);
}

@keyframes letterSlideInLeft {
    from { opacity: 0; transform: translateX(-60px) scale(0.5); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes letterSlideInRight {
    from { opacity: 0; transform: translateX(60px) scale(0.5); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes letterSlideInUp {
    from { opacity: 0; transform: translateY(-60px) scale(0.5); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes letterSlideInDown {
    from { opacity: 0; transform: translateY(60px) scale(0.5); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes letterTPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes letterTPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(98, 101, 253, 0.6)) drop-shadow(0 0 30px rgba(98, 101, 253, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(98, 101, 253, 0.7)) drop-shadow(0 0 40px rgba(98, 101, 253, 0.5));
    }
}

.logo-subtitle {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 1s both;
}

.subtitle-product {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(98, 101, 253, 0.45);
}

.subtitle-powered {
    font-size: 12px;
    font-weight: 500;
    color: #b8c4e0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding-top: 10px;
    border-top: 1px solid rgba(98, 101, 253, 0.35);
    text-shadow: 0 0 18px rgba(98, 101, 253, 0.35);
}

@keyframes subtitleFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form shell */
.container {
    width: 100%;
    padding-bottom: 0;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease-out 1.15s both;
}

#welcome {
    color: #e0e7ff;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 0 16px;
    margin: 0;
}

.frame {
    height: auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 24px 8px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(98, 101, 253, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(98, 101, 253, 0.12);
    overflow: hidden;
    transition: all .5s ease;
    backdrop-filter: blur(12px);
}

.frame-long,
.frame-short {
    height: auto;
    margin-top: 0;
}

.nav {
    width: 100%;
    opacity: 1;
    transition: all .5s ease;
}

.nav-up {
    transform: translateY(-100px);
    opacity: 0;
}

li {
    padding-left: 10px;
    font-size: 18px;
    display: inline;
    text-align: left;
    text-transform: uppercase;
    padding-right: 10px;
    color: #ffffff;
}

.signin-active a,
.signup-active a {
    padding-bottom: 10px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: solid 2px #6265fd;
    cursor: pointer;
}

.signin-inactive a,
.signup-inactive a {
    padding-bottom: 0;
    color: rgba(255, 255, 255, .3);
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
}

.form-signin {
    font-size: 16px;
    font-weight: 400;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    transition: opacity .5s ease, transform .5s ease;
}

.form-signin-left {
    transform: translateX(-400px);
    opacity: 0;
}

.form-signup,
.success,
.cover-photo,
.profile-photo,
.forgot,
.btn-goback,
#refresh {
    display: none !important;
}

.form-signup {
    width: 430px;
    height: 375px;
    opacity: 0;
}

.form-signin input,
.form-signup input {
    color: #ffffff;
    font-size: 14px;
}

.form-styling {
    width: 100%;
    height: 42px;
    padding-left: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.45);
}

label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding-left: 2px;
    padding-bottom: 8px;
    color: rgba(224, 231, 255, 0.7);
    display: block;
}

:focus {
    outline: none;
}

.form-signin input:focus,
.form-signup input:focus {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(98, 101, 253, 0.65);
    box-shadow: 0 0 0 3px rgba(98, 101, 253, 0.15);
    padding-right: 14px;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    display: none;
}

.btn-signup {
    float: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-align: center;
    color: #ffffff;
    padding-top: 8px;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 8px;
    margin-top: 23px;
    background-color: #6265fd;
}

.btn-signin {
    float: none;
    display: block;
    padding-top: 11px;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    margin-top: 0;
    color: #ffffff;
    text-decoration: none;
}

.btn-animate {
    float: none;
    clear: both;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #ffffff;
    padding-top: 0;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 8px;
    margin-top: 8px;
    background-color: #6265fd;
    box-shadow: 0 0 24px rgba(98, 101, 253, 0.35);
    transition: background-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.btn-animate:hover {
    background-color: #7578ff;
    box-shadow: 0 0 32px rgba(98, 101, 253, 0.5);
}

a.btn-signup:hover,
a.btn-signin:hover {
    cursor: pointer;
    background-color: #7578ff;
}

.btn-animate-grow {
    width: 130%;
    height: 625px;
    position: relative;
    left: -55px;
    top: -420px;
    color: rgba(255, 255, 255, 0);
    background-color: rgba(255, 255, 255, 1);
}

.welcome,
.cover-photo,
.profile-photo,
.forgot,
.btn-goback,
#refresh,
.success,
.successtext {
    /* retained for stock class toggles */
}

h1 {
    color: #ffffff;
    font-size: 35px;
    font-weight: 300;
    text-align: center;
}

@media (max-width: 480px) {
    .logo-svg,
    .letter-t .logo-svg {
        height: 52px;
    }

    .subtitle-product {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .subtitle-powered {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .form-signin {
        padding-left: 14px;
        padding-right: 14px;
    }
}
