/* ================================================
   AGONIZERS CORPORATION - UNIVERSE LOGIN THEME
   ================================================ */

/* Universe Background - Desktop */
body.login-page {
    background: url('/images/backgrounds/bg.png') center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Dark overlay for text readability */
body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Login Box Container */
.login-box {
    width: auto;
    margin: 0 auto;
    padding: 50px 0;
    position: relative;
    z-index: 10;
}

/* Logo Styling - Much Bigger */
img.login-logo {
    max-height: 350px !important;
    width: auto;
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.login-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

/* Brand Text - Agonizers */
.seat-font {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-size: 3rem !important;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 20px;
    display: block;
}

/* Login Box Body */
.login-box-body {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(180, 180, 180, 0.6);
    padding: 40px;
    margin-top: 30px;
    backdrop-filter: blur(15px);
}

/* Welcome Message */
.login-box-msg {
    color: #ffffff !important;
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

/* EVE SSO Button Enhancement */
.box-body img {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    max-width: 280px;
    width: 100%;
    height: auto;
}

.box-body img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    filter: brightness(1.1);
}

/* ============ ENHANCED MOBILE RESPONSIVE DESIGN ============ */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Adjust background for tablets */
    body.login-page {
        background: url('/images/backgrounds/bg.png') center top;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .login-box {
        width: 95%;
        padding: 30px 10px;
        margin: 0 auto;
    }
    
    img.login-logo {
        max-height: 120px !important;
        padding: 10px;
    }
    
    .seat-font {
        font-size: 2.2rem !important;
        margin-top: 15px;
        letter-spacing: 1px;
    }
    
    .login-box-body {
        padding: 30px 20px;
        margin: 20px 10px;
        border-radius: 15px;
    }
    
    .login-box-msg {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .box-body img {
        max-width: 250px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Mobile-optimized background positioning */
    body.login-page {
        background: url('/images/backgrounds/bg.png') center 20%;
        background-size: cover;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
    
    /* Stronger dark overlay for mobile */
    body.login-page::before {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .login-box {
        width: 100%;
        padding: 20px 5px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    img.login-logo {
        max-height: 160px !important;
        padding: 8px;
        border-radius: 12px;
    }
    
    .seat-font {
        font-size: 1.8rem !important;
        margin-top: 10px;
        letter-spacing: 0.5px;
    }
    
    .login-box-body {
        padding: 25px 15px;
        margin: 15px 5px;
        border-radius: 12px;
        border-width: 1px;
    }
    
    .login-box-msg {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .box-body {
        margin: 20px 0;
    }
    
    .box-body img {
        max-width: 200px;
        border-radius: 8px;
    }
    
    .text-center {
        margin-bottom: 10px;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    /* Optimize background for very small screens */
    body.login-page {
        background: url('/images/backgrounds/bg.png') center 30%;
        background-size: cover;
        background-attachment: scroll;
    }
    
    img.login-logo {
        max-height: 120px !important;
        padding: 6px;
    }
    
    .seat-font {
        font-size: 1.5rem !important;
    }
    
    .login-box-body {
        padding: 20px 12px;
        margin: 10px 3px;
    }
    
    .login-box-msg {
        font-size: 13px;
    }
    
    .box-body img {
        max-width: 180px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 640px) and (orientation: landscape) {
    body.login-page {
        background: url('/images/backgrounds/bg.png') center center;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .login-box {
        padding: 10px 5px;
    }
    
    .login-logo img {
        max-height: 50px !important;
    }
    
    .seat-font {
        font-size: 1.6rem !important;
        margin-top: 8px;
    }
    
    .login-box-body {
        padding: 20px 15px;
        margin: 10px 5px;
    }
}

/* Smooth animations for all screen sizes */
* {
    transition: all 0.3s ease;
}

/* Touch-friendly targets on mobile */
@media (max-width: 768px) {
    .box-body a {
        display: block;
        padding: 10px;
        margin: 10px auto;
        border-radius: 8px;
    }
}