/* Custom CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Poppins', sans-serif;
    background: #eee;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.login-container {
    display: flex;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgb(0 0 0 / .1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    min-height: 600px
}

.image-section {
    flex: 1;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa
}

.brand {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase
}

.app-logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px
}

.welcome-subtitle {
    color: #6b7280;
    margin-bottom: 40px;
    font-size: 15px;
    font-weight: 400
}

.form-group {
    margin-bottom: 25px
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
    color: #374151
}

.form-input:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(128, 68, 239, 0.1)
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6B46C1 0%, #6B46C1 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(119, 68, 239, 0.3)
}

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

@media (max-width:768px) {
    body {
        padding: 10px
    }

    .login-container {
        flex-direction: column;
        max-width: 400px;
        min-height: auto
    }

    .image-section {
        min-height: 200px;
        flex: none;
        display: none
    }

    .form-section {
        padding: 40px 30px
    }

    .welcome-title {
        font-size: 25px
    }

    .form-input {
        padding: 14px 18px;
        font-size: 14px
    }

    .login-btn {
        padding: 14px;
        font-size: 14px
    }
}

@media (max-width:480px) {
    .app-logo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .form-section {
        padding: 30px 25px
    }

    .welcome-title {
        font-size: 20px
    }

    .form-input {
        padding: 12px 16px
    }

    .login-btn {
        padding: 12px
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.text-red-500.text-sm.mt-2 {
    font-size: 13px;
    background: #cc2a1e;
    color: #fff;
    margin: 10px 0 0;
    text-align: center;
    padding: 5px;
    border-radius: 10px
}

.image-placeholder img {
    max-height: 600px
}

/* PWA Download Page Styles */
.pwa-container {
    padding: 20px;
    width: 100%;
}

.pwa-install-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(119, 68, 239, 0.3);
}

.pwa-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.pwa-back-link:hover {
    color: #1f2937;
}

.pwa-instruction-card {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.pwa-instruction-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 15px;
}

.pwa-instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwa-instruction-item {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pwa-status-msg {
    color: #059669;
    background: #ecfdf5;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.pwa-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6B46C1 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-top: 25px;
    width: 100%;
    transition: all 0.3s ease;
}

.pwa-download-link svg {
    margin-right: 8px;
}

.pwa-download-link:hover {
    color: #8B5CF6 !important;
    transform: translateY(-1px);
}