/* login.css */

/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    width: 100%;
    color: #1a202c;
    font-size: 16px;
}

/* Main Content Styles */
body {
    background-color: #f4f4f4;
    padding-top: 100px;
    background-image: url('../images/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



.container {
    min-height: 110vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.alert-danger{
    color : red;
    font-weight: bold;
}

.beveled-frame {
    position: relative;
    width: 750px;
    height: 600px;
}

/* Outer glow layer */
.glow-outer {
    position: absolute;
    inset: 4px;
    background: #5EF0FE;

    clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% calc(100% - 30px),
            calc(100% - 30px) 100%,
            30px 100%,
            0 calc(100% - 30px),
            0 30px);
    filter: blur(15px);
}

/* Frame border */
.frame-border {
    position: absolute;
    inset: 8px;
    background: #085582;
    border-radius: 10px;
    clip-path: polygon(20px 0,
            calc(100% - 20px) 0,
            100% 20px,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            20px 100%,
            0 calc(100% - 20px),
            0 20px);
}

/* Inner glow layer */
.glow-inner {
    position: absolute;
    inset: 16.9px;
    background: #5ef0fe;
    clip-path: polygon(12px 0,
            calc(100% - 12px) 0,
            100% 12px,
            100% calc(100% - 12px),
            calc(100% - 12px) 100%,
            12px 100%,
            0 calc(100% - 12px),
            0 12px);
    filter: blur(10px);
}

/* Content area */
.frame-content {
    position: absolute;
    inset: 20px;
    background-color: #ffffff;
    clip-path: polygon(10px 0,
            calc(100% - 10px) 0,
            100% 10px,
            100% calc(100% - 10px),
            calc(100% - 10px) 100%,
            10px 100%,
            0 calc(100% - 10px),
            0 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    color: #085582;
    font-size: 18px;
    /* position: relative; */
    overflow: hidden;
}

/* Bob character in top left */
.bob-character {
    position: absolute;
    top: -100px;
    left: 40px;
    width: 180px;
    height: auto;
    z-index: 2;
}
/* Bob character in top left */
.bob-shield {
    position: absolute;
    top: -60px;
    left: 185px;
    width: 90px;
    height: auto;
    z-index: 2;
}
/* Bob logo in top  */
.bob-logo {
    /* position: absolute; */
    /* top: 0px; */
    /* left: 0px; */
    width: 250px;
    height: auto;
    z-index: 2;
}

/* Astronaut brain in bottom right */
.astrobrain-character {
    position: absolute;
    bottom: 0px;
    right: -20px;
    width: 200px;
    height: auto;
    z-index: 2;
}

/* Login container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    z-index: 1;
}

/* Login header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.battles-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #c84b4b;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.battles-title br + text,
.battles-title::after {
    color: #4a90e2;
}

.access-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #4a90e2;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.access-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

/* Input group */
.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5a8fb0;
    font-size: 1.2rem;
}

.login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    background-color: #d4e9f7;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.login-input::placeholder {
    color: #7a9eb5;
    font-weight: 500;
}

.login-input:focus {
    background-color: #c2dff1;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.toggle-password {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5a8fb0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #4a90e2;
}

/* Action group */
.action-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.initialize-button {
    width: 100%;
    padding: 1.2rem 2rem;
    border: 3px solid;
    border-radius: 50px;
    /* background: linear-gradient(135deg, #82d616 0%, #5eb512 100%); */
    background-color: #62E363;
    color: #1B5C69;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    border-color: #1B5C69;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 214, 22, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.initialize-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 214, 22, 0.6),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.initialize-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(130, 214, 22, 0.4),
                inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.create-profile-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.create-profile-link:hover {
    color: #357abd;
    border-bottom: 2px solid #4a90e2;
}

/* Main Content - Mission Briefing */
.main-content {
    /* min-height: 100vh; */
    /* align-items: center; */
    /* padding: 2rem 5%; */
    /* align-content: center; */
    text-align: left;
}

.mission-header {
    text-align: center;
    margin-bottom: 4rem;
    color: #002549;
    margin-top: 1rem;
}

.mission-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mission-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}



/* Mobile Responsiveness */

/* Tablet and smaller laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .beveled-frame {
        width: 650px;
        height: 550px;
        margin-top: 50px;
    }

    .bob-character {
        width: 150px;
        top: -85px;
        left: 30px;
    }

    .bob-shield {
        width: 75px;
        top: -50px;
        left: 160px;
    }

    .bob-logo {
        width: 220px;
    }

    .astrobrain-character {
        width: 170px;
        bottom: -10px;
        right: -15px;
    }

    .login-container {
        max-width: 450px;
        padding: 1.5rem;
    }

    .battles-title {
        font-size: 1.8rem;
    }

    .access-title {
        font-size: 1.8rem;
    }

    .access-subtitle {
        font-size: 1rem;
    }

    .initialize-button {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .main-content {
        padding: 6rem 3%;
    }

    .mission-header {
        margin-bottom: 2rem;
    }

    .container {
        padding: 20px;
        display: flex;
        justify-content: center;
         align-items: center;
    min-height: 80vh;
    }

    .beveled-frame {
        width: 90vw;
        max-width: 550px;
        height: 500px;
    }

    /* Adjust glow effects for smaller screens */
    .glow-outer {
        inset: 3px;
        clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px),
                calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
    }

    .frame-border {
        inset: 6px;
        clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px),
                calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    }

    .glow-inner {
        inset: 12px;
        clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px),
                calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    }

    .frame-content {
        inset: 15px;
        clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px),
                calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    }

    .bob-character {
        width: 120px;
        top: -70px;
        left: 20px;
    }

    .bob-shield {
        width: 60px;
        top: -40px;
        left: 125px;
    }

    .bob-logo {
        width: 180px;
    }

    .astrobrain-character {
        width: 140px;
        bottom: -5px;
        right: -10px;
    }

    .login-container {
        max-width: 400px;
        padding: 1rem;
    }

    .login-header {
        margin-bottom: 1.5rem;
    }

    .battles-title {
        font-size: 1.5rem;
    }

    .access-title {
        font-size: 1.5rem;
    }

    .access-subtitle {
        font-size: 0.95rem;
    }

    .input-group {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .login-input {
        padding: 0.9rem 0.9rem 0.9rem 3rem;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }

    .toggle-password {
        right: 1.2rem;
        font-size: 1.1rem;
    }

    .initialize-button {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    .create-profile-link {
        font-size: 0.95rem;
    }
}

/* Mobile landscape and small tablets (576px - 767px) */
@media (max-width: 576px) and (orientation: landscape) {
    .beveled-frame {
        height: 480px;
    }

    .bob-character {
        width: 100px;
        top: -60px;
    }

    .bob-shield {
        width: 50px;
        top: -30px;
        left: 110px;
    }

    .astrobrain-character {
        width: 120px;
    }

    .login-header {
        margin-bottom: 1rem;
    }

    .battles-title {
        font-size: 1.3rem;
    }

    .access-title {
        font-size: 1.3rem;
    }

    .input-group {
        gap: 0.7rem;
        margin-bottom: 1rem;
    }

    .initialize-button {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem;
    }
}

/* Mobile devices (up to 576px) */
@media (max-width: 576px) {
    body {
        padding-top: 130px;
    }

    .main-content {
        padding: 2rem 2%; 
    }

    .mission-header {
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 15px;
        margin-top: -60px;
    }

    .beveled-frame {
        width: 95vw;
        max-width: 400px;
        height: 480px;
    }

    /* Further adjust glow effects */
    .glow-outer {
        inset: 2px;
        filter: blur(10px);
        clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px),
                calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    }

    .frame-border {
        inset: 5px;
        clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px),
                calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    }

    .glow-inner {
        inset: 10px;
        filter: blur(8px);
        clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px),
                calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    }

    .frame-content {
        inset: 12px;
        clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px),
                calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    }

    .bob-character {
        width: 90px;
        top: -55px;
        left: 10px;
    }

    .bob-shield {
        width: 45px;
        top: -25px;
        left: 90px;
    }

    .bob-logo {
        width: 150px;
    }

    .astrobrain-character {
        width: 110px;
        bottom: 40px;
        right: -15px;
    }

    .login-container {
        max-width: 100%;
        padding: 0.8rem;
    }

    .login-header {
        margin-bottom: 1rem;
    }

    .battles-title {
        font-size: 1.2rem;
    }

    .access-title {
        font-size: 1.3rem;
    }

    .access-subtitle {
        font-size: 0.85rem;
    }

    .input-group {
        gap: 0.7rem;
        margin-bottom: 1rem;
    }

    .login-input {
        padding: 0.8rem 0.8rem 0.8rem 2.8rem;
        font-size: 0.9rem;
    }

    .input-icon {
        left: 0.9rem;
        font-size: 1rem;
    }

    .toggle-password {
        right: 1rem;
        font-size: 1rem;
    }

    .initialize-button {
        font-size: 1.1rem;
        padding: 0.9rem 1.2rem;
    }

    .create-profile-link {
        font-size: 0.9rem;
    }

    .footer-text {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Extra small devices (up to 400px) */
@media (max-width: 400px) {
    .beveled-frame {
        height: 450px;
    }

    .bob-character {
        width: 80px;
        top: -50px;
        left: 5px;
    }

    .bob-shield {
        width: 40px;
        top: -20px;
        left: 75px;
    }

    .bob-logo {
        width: 130px;
    }

    .astrobrain-character {
        width: 100px;
        bottom: 40px;
        right: -15px;
    }

    .battles-title {
        font-size: 1.1rem;
    }

    .access-title {
        font-size: 1.2rem;
    }

    .access-subtitle {
        font-size: 0.8rem;
    }

    .login-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.85rem;
    }

    .input-icon {
        left: 0.8rem;
        font-size: 0.95rem;
    }

    .toggle-password {
        right: 0.9rem;
        font-size: 0.95rem;
    }

    .initialize-button {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .create-profile-link {
        font-size: 0.85rem;
    }
}

/* Very small devices (up to 320px) */
@media (max-width: 320px) {
    .beveled-frame {
        height: 420px;
    }

    .bob-character {
        width: 70px;
        top: -45px;
    }

    .bob-shield {
        width: 35px;
        top: -18px;
        left: 65px;
    }

    .astrobrain-character {
        width: 90px;
    }

    .battles-title {
        font-size: 1rem;
    }

    .access-title {
        font-size: 1.1rem;
    }

    .access-subtitle {
        font-size: 0.75rem;
    }

    .login-input {
        padding: 0.7rem 0.7rem 0.7rem 2.3rem;
        font-size: 0.8rem;
    }

    .initialize-button {
        font-size: 0.9rem;
        padding: 0.75rem 0.9rem;
    }
}

@media (max-width: 432px) {
  
    
}
@media (max-width: 362px) {
    .simple-footer {
        padding-top: 0rem;
    }
    
}
@media (max-width: 950px) {

}
@media (max-width: 1026px) {
   .main-content {
       /* margin-top: 5rem;-- */  
       min-height: 87vh;
       align-items: center;
       align-content: center;
   }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-link {
    color: #333;
}

.header.scrolled .hamburger span {
    background-color: #333;
}

/* Logo */
.logo {
    height: 5rem;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Navigation */
/* Navigation Dropdown for Mobile */
.nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 5.5rem;
    right: -100%;
    width: 14rem;
    height: auto;
    background: #ffffff;
    padding: 2rem;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: #333;
}

.nav.active {
    right: 1.5rem;
}

@media (min-width: 768px) {
    .nav {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        right: 0;
        box-shadow: none;
        color: #ffffff;
    }
}

/* Nav links */
.nav-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    font-weight: 600;
}

.nav-link:hover {
    color: #82d616;
}

/* Button */
.explore-button {
    background: linear-gradient(135deg, #82d616 0%, #4caf50 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(130, 214, 22, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 214, 22, 0.6);
}

/* Footer */
.simple-footer {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 37, 73, 0.2);
    /* Subtle dark line */
    max-width: 90%;
}

.footer-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #1a202c;
    font-weight: 600;
    text-align: center;
}
.account-security-title {
    display: inline-block;
    /* margin: 0 auto 14px auto; */
    padding: 6px 16px;
    margin-bottom: -1.5rem;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #2ec5ff, #3a7bd5);
    border-radius: 20px;
    text-align: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Input group */
.input-group1 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* margin-bottom: 1.5rem; */
}
.input-group2 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.input-group3 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.input-groups {
    width: 100%;
    display: flex;
    /* flex-direction: column; */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
}


.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a9eff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
/*    margin-bottom: 10px;*/
    transition: all 0.3s ease;
}

.input-wrapper:hover .profile-image {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

.input-wrapper.selected .profile-image {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.9);
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #5294d6;
    border-radius: 6px;
    border: 3px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #6697e0;
}