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

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 50%, #0d1033 100%);
    background-size: cover;
    min-height: 100vh;
    color: #e0e0e0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    /* margin-bottom: 20px; */
}

.hidden {
    display: none!important;
}
#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody > .container > .text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody > .container > .text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody > .container > .text-center > a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody > .container > .text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

#content-container {
    position: relative;
    z-index: 10;
}

.user-section {
    max-width: 450px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.logon-tab {
    display: flex;
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 31, 78, 0.95) 0%, rgba(13, 16, 51, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: none;
}

.logon-tab a {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

.logon-tab a:hover {
    color: #00d4ff;
}

.logon-tab a.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    color: #00d4ff;
    box-shadow: 0 -2px 20px rgba(0, 212, 255, 0.3);
}

.login-main {
    background: linear-gradient(135deg, rgba(26, 31, 78, 0.95) 0%, rgba(13, 16, 51, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0 0 20px 20px;
    padding: 40px 35px;
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    position: relative;
}

.login-main::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #8a2be2, #00d4ff, #8a2be2);
    background-size: 400% 400%;
    border-radius: 0 0 21px 21px;
    z-index: -1;
    animation: borderGlow 8s ease infinite;
    opacity: 0.3;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tech-header {
    text-align: center;
    margin-bottom: 30px;
    color: #00d4ff;
}

.tech-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0 8px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    letter-spacing: 2px;
}

.tech-header .subtitle {
    color: rgba(0, 212, 255, 0.6);
    font-size: 12px;
    letter-spacing: 3px;
}

.form-control {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #fff;
    padding: 15px;
    height: 50px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.control-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 8px;
}

.control-label.required::after {
    content: '*';
    color: #ff6b6b;
    margin-left: 5px;
}

.tech-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
}

.tech-input-group .input-group-addon {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-right: none;
    color: #00d4ff;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
}

.tech-input-group .input-group-addon:last-child {
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    border-left: none;
    cursor: pointer;
}

.tech-input-group:focus-within .input-group-addon {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
}

#username-ok {
    color: #00d4ff;
}

#username-error {
    color: #ff6b6b;
}

.username-tip {
    font-size: 12px;
    margin-top: 5px;
}

.tech-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #8a2be2 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.tech-btn:hover::before {
    left: 100%;
}

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

.tech-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tech-btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tech-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
    color: #00d4ff !important;
}

.footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer p {
    font-size: 14px;
    margin: 0;
}
