/* Instagram Mobile App Style - Solid Black */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* PURE BLACK BACKGROUND (Exactly like Mobile App) */
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
    color: #f5f5f5;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #000000;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insta-icon {
    width: 28px;
    height: 28px;
    color: #f5f5f5;
}

.brand-name {
    font-family: 'Grand Hotel', cursive;
    font-size: 28px;
    color: #f5f5f5;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin-top: 60px;
}

/* Common Box Style - Flat Dark Gray (Mobile App Style) */
.box {
    background: #121212; /* Solid Dark Gray */
    border: 1px solid #262626; /* Subtle Border */
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin-bottom: 10px;
    /* No glassmorphism, no blur, just flat color */
}

.login-box {
    padding: 20px 40px;
}

.insta-logo {
    font-family: 'Grand Hotel', cursive;
    font-size: 52px;
    margin: 30px auto 20px;
    color: #f5f5f5;
    width: fit-content;
}

.error-banner {
    background-color: #ff0000;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.input-group {
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 9px 8px 7px;
    background-color: #262626; /* Dark Input BG */
    border: 1px solid #363636;
    border-radius: 3px;
    font-size: 12px;
    outline: none;
    color: #f5f5f5;
}

input:focus {
    border: 1px solid #0095f6;
}

button {
    width: 100%;
    background-color: #0095f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

button:not([disabled]) {
    opacity: 1;
    background-color: #0095f6;
}

button:hover:not([disabled]) {
    background-color: #1877f2;
}

button:disabled {
    cursor: not-allowed;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #a8a8a8;
    font-size: 13px;
    font-weight: 600;
}

.divider span:first-child,
.divider span:last-child {
    flex: 1;
    height: 1px;
    background-color: #262626;
}

.divider span:nth-child(2) {
    padding: 0 15px;
}

.fb-login {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #385185;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
    gap: 8px;
}

.fb-login:hover {
    text-decoration: underline;
}

.forgot-password {
    display: block;
    color: #a8a8a8;
    font-size: 12px;
    text-decoration: none;
    margin-top: 10px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.app-box {
    padding: 20px;
}

.app-box p {
    color: #f5f5f5;
    font-size: 17px;
    margin-bottom: 20px;
}

.store-buttons img {
    height: 33px;
    margin: 5px;
}

.footer {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #8e8e8e;
    margin-bottom: 10px;
}

.footer-links a {
    color: #8e8e8e;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #8e8e8e;
}

/* Mobile Responsiveness */
@media (max-width: 450px) {
    .navbar {
        padding: 0 10px;
    }
    .brand-name {
        font-size: 22px;
    }
    .box {
        border: none;
        background: #121212; /* Keep solid color on mobile */
        padding: 0;
        margin-bottom: 0;
    }
    .login-box {
        background: #121212;
        border: 1px solid #262626;
        padding: 20px 40px;
        margin-bottom: 10px;
    }
    .app-box {
        background: #121212;
        border: 1px solid #262626;
        padding: 20px;
        margin-bottom: 10px;
    }
}